mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-27 03:28:45 +01:00
HologramTrait should have nameplate visible
This commit is contained in:
parent
166aa3d739
commit
da76924041
@ -74,6 +74,7 @@ public class HologramTrait extends Trait {
|
|||||||
NPC hologramNPC = registry.createNPC(EntityType.ARMOR_STAND, line);
|
NPC hologramNPC = registry.createNPC(EntityType.ARMOR_STAND, line);
|
||||||
hologramNPC.addTrait(new ClickRedirectTrait(npc));
|
hologramNPC.addTrait(new ClickRedirectTrait(npc));
|
||||||
hologramNPC.getOrAddTrait(ArmorStandTrait.class).setAsPointEntity();
|
hologramNPC.getOrAddTrait(ArmorStandTrait.class).setAsPointEntity();
|
||||||
|
npc.data().set(NPC.NAMEPLATE_VISIBLE_METADATA, true);
|
||||||
hologramNPC.spawn(currentLoc.clone().add(0,
|
hologramNPC.spawn(currentLoc.clone().add(0,
|
||||||
getEntityHeight()
|
getEntityHeight()
|
||||||
+ (direction == HologramDirection.BOTTOM_UP ? heightOffset : getMaxHeight() - heightOffset),
|
+ (direction == HologramDirection.BOTTOM_UP ? heightOffset : getMaxHeight() - heightOffset),
|
||||||
|
Loading…
Reference in New Issue
Block a user