From ec08bfa3573edf15b4e02039f6cdcd818b82b4ec Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 21 Jul 2021 19:58:25 +0900 Subject: Fix box mobs not working --- .../dungeonsguide/features/impl/dungeon/FeatureBoxSkelemaster.java | 2 +- .../dungeonsguide/features/impl/dungeon/FeatureBoxStarMobs.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureBoxSkelemaster.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureBoxSkelemaster.java index 5020edc6..4e80ccf6 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureBoxSkelemaster.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureBoxSkelemaster.java @@ -56,7 +56,7 @@ public class FeatureBoxSkelemaster extends SimpleFeature implements WorldRenderL @Override public boolean apply(@Nullable EntityArmorStand input) { if (player.distanceSq(input.getPosition()) > sq) return false; - if (input.isInvisible() || !input.getAlwaysRenderNameTag()) return false; + if (!input.getAlwaysRenderNameTag()) return false; return input.getName().contains("Skeleton Master"); } }); diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureBoxStarMobs.java b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureBoxStarMobs.java index 1710e74d..bce0ef21 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureBoxStarMobs.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/features/impl/dungeon/FeatureBoxStarMobs.java @@ -56,7 +56,7 @@ public class FeatureBoxStarMobs extends SimpleFeature implements WorldRenderList @Override public boolean apply(@Nullable EntityArmorStand input) { if (player.distanceSq(input.getPosition()) > sq) return false; - if (input.isInvisible() || !input.getAlwaysRenderNameTag()) return false; + if (!input.getAlwaysRenderNameTag()) return false; return input.getName().contains("✯"); } }); -- cgit