Move minecraft placeholder cache to AbstractNPC

This commit is contained in:
fullwall 2022-12-04 01:38:36 +08:00
parent 9da5ac7a37
commit 06230800b9

View File

@ -59,7 +59,6 @@ import net.citizensnpcs.util.Util;
public class CitizensNPC extends AbstractNPC {
private ChunkCoord cachedCoord;
private EntityController entityController;
private Object minecraftComponentCache;
private final CitizensNavigator navigator = new CitizensNavigator(this);
private int updateCounter = 0;
@ -242,7 +241,6 @@ public class CitizensNPC extends AbstractNPC {
@Override
public void setName(String name) {
minecraftComponentCache = Messaging.minecraftComponentFromRawMessage(name);
super.setName(name);
if (requiresNameHologram() && !hasTrait(HologramTrait.class)) {