mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-25 12:15:53 +01:00
Move hologram metadata check to CitizensNPC
This commit is contained in:
parent
258ac20a21
commit
7073bebc17
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user