mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Don't treat arrows as external mobs. Resolves #88
This commit is contained in:
parent
7ffec6412b
commit
ec58e4c704
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user