Skip to content

Commit

Permalink
Fix /npc skin creating unloadable NPCs
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Apr 9, 2014
1 parent efdfb38 commit 9ea35d7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/net/citizensnpcs/npc/CitizensNPC.java
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ public void load(final DataKey root) {
@Override
public void save(DataKey root) {
super.save(root);
if (!data().get(NPC.SHOULD_SAVE_METADATA, true))
return;
navigator.save(root.getRelative("navigator"));
}

Expand Down

0 comments on commit 9ea35d7

Please sign in to comment.