mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-09-19 11:31:10 +02:00
Fixed MythicMobs not recognized as DMobs
This commit is contained in:
parent
df806d1520
commit
0caad8f0f4
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user