mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 18:45:29 +01:00
Move minecraft placeholder cache to AbstractNPC
This commit is contained in:
parent
9da5ac7a37
commit
06230800b9
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user