Fix NPC renaming to parse colored names

This commit is contained in:
scizzr 2014-03-02 09:24:38 -05:00
parent c651c61c37
commit 53ab0d0703

View File

@ -1071,7 +1071,7 @@ public class NPCCommands {
}
Location prev = npc.isSpawned() ? npc.getEntity().getLocation() : null;
npc.despawn(DespawnReason.PENDING_RESPAWN);
npc.setName(newName);
npc.setName(Colorizer.parseColors(newName));
if (prev != null)
npc.spawn(prev);