Skip to content

Commit

Permalink
Fix OfflinePlayer hasPlayedBefore (#1347)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustTalDevelops authored Apr 16, 2020
1 parent 41cbba2 commit 15d810b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/cn/nukkit/player/OfflinePlayer.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public Long getLastPlayed() {

@Override
public boolean hasPlayedBefore() {
return this.namedTag != null;
return this.namedTag != CompoundTag.EMPTY;
}

public void setMetadata(String metadataKey, MetadataValue newMetadataValue) {
Expand Down

0 comments on commit 15d810b

Please sign in to comment.