Skip to content

Commit

Permalink
HologramTrait should have nameplate visible
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Apr 17, 2022
1 parent 166aa3d commit da76924
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -74,6 +74,7 @@ private NPC createHologram(String line, double heightOffset) {
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),
Expand Down

0 comments on commit da76924

Please sign in to comment.