From 15d810b86290b792089b46e06219f31e6fb5ea32 Mon Sep 17 00:00:00 2001 From: Tal Date: Thu, 16 Apr 2020 13:37:43 -0500 Subject: [PATCH] Fix OfflinePlayer hasPlayedBefore (#1347) --- src/main/java/cn/nukkit/player/OfflinePlayer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/cn/nukkit/player/OfflinePlayer.java b/src/main/java/cn/nukkit/player/OfflinePlayer.java index 61d8cb3b198..b968accf37d 100644 --- a/src/main/java/cn/nukkit/player/OfflinePlayer.java +++ b/src/main/java/cn/nukkit/player/OfflinePlayer.java @@ -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) {