Skip to content

Commit

Permalink
Fix saving issue exacerbated by #183
Browse files Browse the repository at this point in the history
Closes #199
  • Loading branch information
Jikoo committed May 18, 2024
1 parent 8134887 commit e543053
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public void saveData() {
try {
PlayerDataStorage worldNBTStorage = player.server.getPlayerList().playerIo;

CompoundTag oldData = isOnline() ? null : worldNBTStorage.load(player);
CompoundTag oldData = isOnline() ? null : worldNBTStorage.getPlayerData(player.getStringUUID());
CompoundTag playerData = getWritableTag(oldData);
playerData = player.saveWithoutId(playerData);
setExtraData(playerData);
Expand Down

0 comments on commit e543053

Please sign in to comment.