From da76924041d2791115c492a14e4396d595bfcb4d Mon Sep 17 00:00:00 2001 From: fullwall Date: Sun, 17 Apr 2022 13:37:29 +0800 Subject: [PATCH] HologramTrait should have nameplate visible --- main/src/main/java/net/citizensnpcs/trait/HologramTrait.java | 1 + 1 file changed, 1 insertion(+) diff --git a/main/src/main/java/net/citizensnpcs/trait/HologramTrait.java b/main/src/main/java/net/citizensnpcs/trait/HologramTrait.java index 8c4da2851..0fdb9a771 100644 --- a/main/src/main/java/net/citizensnpcs/trait/HologramTrait.java +++ b/main/src/main/java/net/citizensnpcs/trait/HologramTrait.java @@ -74,6 +74,7 @@ public class HologramTrait extends Trait { NPC hologramNPC = registry.createNPC(EntityType.ARMOR_STAND, line); hologramNPC.addTrait(new ClickRedirectTrait(npc)); hologramNPC.getOrAddTrait(ArmorStandTrait.class).setAsPointEntity(); + npc.data().set(NPC.NAMEPLATE_VISIBLE_METADATA, true); hologramNPC.spawn(currentLoc.clone().add(0, getEntityHeight() + (direction == HologramDirection.BOTTOM_UP ? heightOffset : getMaxHeight() - heightOffset),