mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +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()) {
|
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
|
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
|
&& 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);
|
setExternalMob((LivingEntity) entity);
|
||||||
externalMobs.add(entity);
|
externalMobs.add(entity);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user