From ec58e4c704aa1bb1e001238e149b7a0b5a93412a Mon Sep 17 00:00:00 2001 From: Daniel Saukel Date: Sat, 11 Jun 2016 13:23:13 +0200 Subject: [PATCH] Don't treat arrows as external mobs. Resolves #88 --- .../java/io/github/dre2n/dungeonsxl/sign/ExternalMobSign.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;