Armor stands shouldn't have holograms even if the setting is enabled

This commit is contained in:
fullwall 2020-07-22 01:30:07 +08:00
parent 5907c1c8b2
commit 62e44c25ed
1 changed files with 2 additions and 1 deletions

View File

@ -170,7 +170,8 @@ public class CitizensNPC extends AbstractNPC {
@Override
public boolean requiresNameHologram() {
return super.requiresNameHologram() || Setting.ALWAYS_USE_NAME_HOLOGRAM.asBoolean();
return super.requiresNameHologram()
|| (getEntityType() != EntityType.ARMOR_STAND && Setting.ALWAYS_USE_NAME_HOLOGRAM.asBoolean());
}
private void resetCachedCoord() {