Skip to content

Commit

Permalink
Save name field instead of getFullName()
Browse files Browse the repository at this point in the history
  • Loading branch information
fullwall committed Mar 20, 2021
1 parent f444292 commit de58db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/citizensnpcs/api/npc/AbstractNPC.java
Expand Up @@ -362,7 +362,7 @@ public void save(DataKey root) {
if (!metadata.get(NPC.SHOULD_SAVE_METADATA, true))
return;
metadata.saveTo(root.getRelative("metadata"));
root.setString("name", getFullName());
root.setString("name", name);
root.setString("uuid", uuid.toString());

// Save all existing traits
Expand Down

0 comments on commit de58db9

Please sign in to comment.