Move hologram metadata check to CitizensNPC

This commit is contained in:
fullwall 2023-11-25 04:20:43 +08:00
parent 258ac20a21
commit 7073bebc17

View File

@ -196,7 +196,8 @@ public class CitizensNPC extends AbstractNPC {
@Override
public boolean requiresNameHologram() {
return super.requiresNameHologram() || Setting.ALWAYS_USE_NAME_HOLOGRAM.asBoolean();
return !data().has(NPC.Metadata.HOLOGRAM_FOR)
&& (super.requiresNameHologram() || Setting.ALWAYS_USE_NAME_HOLOGRAM.asBoolean());
}
private void resetCachedCoord() {