This commit is contained in:
Trixkz 2021-11-23 11:03:21 -05:00
parent 4ce0e46b0d
commit 5994288667

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);
}
}