This commit is contained in:
Trixkz 2021-11-23 11:06:21 -05:00
parent 5994288667
commit d846b722c4

View File

@ -74,7 +74,7 @@ public class RandomListeners implements Listener {
@EventHandler
public void onCreatureSpawn(CreatureSpawnEvent event) {
if (event.getEntity().getType() != EntityType.ARMOR_STAND || event.getEntity().getType() != EntityType.VILLAGER) {
if (event.getEntity().getType() != EntityType.ARMOR_STAND && event.getEntity().getType() != EntityType.VILLAGER) {
event.setCancelled(true);
}
}