mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-26 18:11:49 +01:00
Check isSpawned in HologramTrait#onSpawn
This commit is contained in:
parent
14a6004adf
commit
11c48c4e09
@ -149,6 +149,8 @@ public class HologramTrait extends Trait {
|
||||
|
||||
@Override
|
||||
public void onSpawn() {
|
||||
if (!npc.isSpawned())
|
||||
return;
|
||||
currentLoc = npc.getStoredLocation();
|
||||
if (npc.requiresNameHologram()
|
||||
&& Boolean.parseBoolean(npc.data().<Object> get(NPC.NAMEPLATE_VISIBLE_METADATA, true).toString())) {
|
||||
|
Loading…
Reference in New Issue
Block a user