Skip to content

Commit

Permalink
Update requiresNameHologram
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 20, 2023
1 parent 57f454e commit b2b300b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/citizensnpcs/api/npc/AbstractNPC.java
Expand Up @@ -408,7 +408,7 @@ public void removeTrait(Class<? extends Trait> traitClass) {

@Override
public boolean requiresNameHologram() {
return getEntityType() != EntityType.ARMOR_STAND
return getEntityType() != EntityType.ARMOR_STAND && !getEntityType().name().equals("TEXT_DISPLAY")
&& ((name.length() > 16 && getEntityType() == EntityType.PLAYER)
|| data().get(NPC.Metadata.ALWAYS_USE_NAME_HOLOGRAM, false)
|| (coloredNameStringCache != null && coloredNameStringCache.contains("§x"))
Expand Down

0 comments on commit b2b300b

Please sign in to comment.