Skip to content

Commit

Permalink
Don't treat arrows as external mobs. Resolves #88
Browse files Browse the repository at this point in the history
  • Loading branch information
Sataniel98 committed Jun 11, 2016
1 parent 7ffec64 commit ec58e4c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public void setExternalMobs() {
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;
Expand Down

0 comments on commit ec58e4c

Please sign in to comment.