Skip to content

Commit a4c94aa

Browse files
fix(npc): re-add hologram when shouldDisplayHolograms becomes true again
1 parent eeaa528 commit a4c94aa

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

type.generic/src/main/java/net/swofty/type/generic/entity/npc/impl/NPCEntityImpl.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ public void updateNPC() {
140140
}
141141

142142
if (config.shouldDisplayHolograms(viewer)) {
143+
if (!PlayerHolograms.externalPlayerHolograms.containsKey(holo)) {
144+
PlayerHolograms.addExternalPlayerHologram(holo);
145+
}
143146
String[] newHolograms = config.holograms(viewer);
144147
if (!Arrays.equals(newHolograms, holograms)) {
145148
PlayerHolograms.updateExternalPlayerHologramText(holo, newHolograms);

0 commit comments

Comments
 (0)