Don't treat arrows as external mobs. Resolves #88

This commit is contained in:
Daniel Saukel 2016-06-11 13:23:13 +02:00
parent 7ffec6412b
commit ec58e4c704

View File

@ -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;