mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-21 04:49:51 +08:00
Fixed an issue where an entity could fail to spawn, and this would end the edit
This commit is contained in:
parent
61cba3ce07
commit
124308c4ce
@ -68,7 +68,7 @@ public boolean setBlock(Vector location, BaseBlock block) throws WorldEditExcept
|
|||||||
@Override
|
@Override
|
||||||
public Entity createEntity(Location location, BaseEntity state) {
|
public Entity createEntity(Location location, BaseEntity state) {
|
||||||
Entity entity = super.createEntity(location, state);
|
Entity entity = super.createEntity(location, state);
|
||||||
if (state != null) {
|
if (entity != null) {
|
||||||
changeSet.add(new EntityCreate(location, state, entity));
|
changeSet.add(new EntityCreate(location, state, entity));
|
||||||
}
|
}
|
||||||
return entity;
|
return entity;
|
||||||
|
Loading…
Reference in New Issue
Block a user