Fixed MythicMobs not recognized as DMobs

This commit is contained in:
Daniel Saukel 2016-04-27 14:11:36 +02:00
parent df806d1520
commit 0caad8f0f4

View File

@ -260,7 +260,7 @@ public class MythicMobsSign 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
&& !mythicMobs.contains(entity) && entity.isCustomNameVisible() && !(entity instanceof Player)) { && !mythicMobs.contains(entity) && !(entity instanceof Player)) {
setMythicMob((LivingEntity) entity); setMythicMob((LivingEntity) entity);
mythicMobs.add(entity); mythicMobs.add(entity);
return; return;