Skip to content

Commit

Permalink
Fix author uuid restoration breaking with nullish existing uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
dantaeusb committed Dec 22, 2022
1 parent 47aba39 commit 95f29bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public void correctData(ServerLevel level) {
if (this.authorUuid == null || this.authorUuid.equals(FALLBACK_UUID)) {
UUID authorUuid = Helper.tryToRestoreAuthorUuid(level, this.authorName);

if (authorUuid != null && !this.authorUuid.equals(FALLBACK_UUID)) {
if (authorUuid != null) {
this.authorUuid = authorUuid;
} else {
Zetter.LOG.warn("Cannot restore author UUID for player " + this.authorName);
Expand Down

0 comments on commit 95f29bb

Please sign in to comment.