Fixed an issue where an entity could fail to spawn, and this would end the edit

This commit is contained in:
Wyatt Childers 2016-02-05 19:08:26 -05:00
parent 61cba3ce07
commit 124308c4ce

View File

@ -68,7 +68,7 @@ public class ChangeSetExtent extends AbstractDelegateExtent {
@Override
public Entity createEntity(Location location, BaseEntity state) {
Entity entity = super.createEntity(location, state);
if (state != null) {
if (entity != null) {
changeSet.add(new EntityCreate(location, state, entity));
}
return entity;