HologramTrait should have nameplate visible

This commit is contained in:
fullwall 2022-04-17 13:37:29 +08:00
parent 166aa3d739
commit da76924041
1 changed files with 1 additions and 0 deletions

View File

@ -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),