Fix /npc skin creating unloadable NPCs

This commit is contained in:
fullwall 2014-04-09 21:35:11 +08:00
parent b1cbc4f409
commit 89c7fef7fc

View File

@ -119,6 +119,8 @@ public class CitizensNPC extends AbstractNPC {
@Override
public void save(DataKey root) {
super.save(root);
if (!data().get(NPC.SHOULD_SAVE_METADATA, true))
return;
navigator.save(root.getRelative("navigator"));
}