Armor stands are now buildable in creative worlds.

This commit is contained in:
ryanhamshire 2014-12-04 16:23:06 -08:00
parent 8eb7ced9c0
commit f66ebe5dce

View File

@ -196,7 +196,7 @@ class EntityEventHandler implements Listener
//chicken eggs and breeding could potentially make a mess in the wilderness, once griefers get involved
SpawnReason reason = event.getSpawnReason();
if(reason != SpawnReason.SPAWNER_EGG && reason != SpawnReason.BUILD_IRONGOLEM && reason != SpawnReason.BUILD_SNOWMAN)
if(reason != SpawnReason.SPAWNER_EGG && reason != SpawnReason.BUILD_IRONGOLEM && reason != SpawnReason.BUILD_SNOWMAN && event.getEntityType() != EntityType.ARMOR_STAND)
{
event.setCancelled(true);
return;