Skip to content

Commit

Permalink
Null check
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Jul 17, 2020
1 parent b14f0ba commit 65aa07a
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ public void load(DataKey key) {

@Override
public void save(DataKey key) {
key.removeKey("uuid");
if (redirectNPC == null)
return;
key.setString("uuid", redirectNPC.getUniqueId().toString());
}
}

0 comments on commit 65aa07a

Please sign in to comment.