From 124308c4ce5c475519c9f2f53686b86ec4be81a7 Mon Sep 17 00:00:00 2001 From: Wyatt Childers Date: Fri, 5 Feb 2016 19:08:26 -0500 Subject: [PATCH] Fixed an issue where an entity could fail to spawn, and this would end the edit --- .../main/java/com/sk89q/worldedit/extent/ChangeSetExtent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 boolean setBlock(Vector location, BaseBlock block) throws WorldEditExcept @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;