diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2023-02-28 13:00:12 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 13:00:12 +0900 |
commit | 728f1863377135fd71cc81c3abdc6c05506fff62 (patch) | |
tree | d918c083a0f19632819d483a3f72dc5660b35a84 | |
parent | de64d95fcb88ad71f43a3508728aed7d34334ffc (diff) | |
download | Skyblock-Dungeons-Guide-728f1863377135fd71cc81c3abdc6c05506fff62.tar.gz Skyblock-Dungeons-Guide-728f1863377135fd71cc81c3abdc6c05506fff62.tar.bz2 Skyblock-Dungeons-Guide-728f1863377135fd71cc81c3abdc6c05506fff62.zip |
Fix #308 hide mob nametag hiding all nametags (#352)
Signed-off-by: syeyoung <cyoung06@naver.com>
-rw-r--r-- | mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureHideNameTags.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureHideNameTags.java b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureHideNameTags.java index 1c882131..1818e0a7 100644 --- a/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureHideNameTags.java +++ b/mod/src/main/java/kr/syeyoung/dungeonsguide/mod/features/impl/dungeon/FeatureHideNameTags.java @@ -42,7 +42,7 @@ public class FeatureHideNameTags extends SimpleFeature { if (renderPlayerEvent.entity instanceof EntityArmorStand) { EntityArmorStand armorStand = (EntityArmorStand) renderPlayerEvent.entity; - if (armorStand.getAlwaysRenderNameTag()) + if (armorStand.getAlwaysRenderNameTag() && armorStand.getName().contains("❤")) renderPlayerEvent.setCanceled(true); } } |