From 728f1863377135fd71cc81c3abdc6c05506fff62 Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Tue, 28 Feb 2023 13:00:12 +0900 Subject: Fix #308 hide mob nametag hiding all nametags (#352) Signed-off-by: syeyoung --- .../dungeonsguide/mod/features/impl/dungeon/FeatureHideNameTags.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } -- cgit