From d846b722c44a761c3f34f39058c41f38ff7e84fa Mon Sep 17 00:00:00 2001 From: Trixkz Date: Tue, 23 Nov 2021 11:06:21 -0500 Subject: [PATCH] t --- src/main/java/rip/tilly/bedwars/listeners/RandomListeners.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/rip/tilly/bedwars/listeners/RandomListeners.java b/src/main/java/rip/tilly/bedwars/listeners/RandomListeners.java index 3b935f0..e81e8ed 100644 --- a/src/main/java/rip/tilly/bedwars/listeners/RandomListeners.java +++ b/src/main/java/rip/tilly/bedwars/listeners/RandomListeners.java @@ -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); } }