diff --git a/src/main/java/io/github/dre2n/dungeonsxl/sign/ExternalMobSign.java b/src/main/java/io/github/dre2n/dungeonsxl/sign/ExternalMobSign.java index 382b4d54..53011478 100644 --- a/src/main/java/io/github/dre2n/dungeonsxl/sign/ExternalMobSign.java +++ b/src/main/java/io/github/dre2n/dungeonsxl/sign/ExternalMobSign.java @@ -274,7 +274,7 @@ public class ExternalMobSign extends DSign implements MobSign { for (Entity entity : spawnLocation.getChunk().getEntities()) { if (entity.getLocation().getX() >= spawnLocation.getX() - 1 && entity.getLocation().getX() <= spawnLocation.getX() + 1 && entity.getLocation().getY() >= spawnLocation.getY() - 1 && entity.getLocation().getY() <= spawnLocation.getY() + 1 && entity.getLocation().getZ() >= spawnLocation.getZ() - 1 && entity.getLocation().getZ() <= spawnLocation.getZ() + 1 - && !externalMobs.contains(entity) && !(entity instanceof Player)) { + && !externalMobs.contains(entity) && entity instanceof LivingEntity && !(entity instanceof Player)) { setExternalMob((LivingEntity) entity); externalMobs.add(entity); return;