diff --git a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/ChangeSetExtent.java b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/ChangeSetExtent.java index 84af07ab3..794183355 100644 --- a/worldedit-core/src/main/java/com/sk89q/worldedit/extent/ChangeSetExtent.java +++ b/worldedit-core/src/main/java/com/sk89q/worldedit/extent/ChangeSetExtent.java @@ -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;