From 1866de269bfd0f1e1f070c1fdc4fe49d42ea7ae9 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Wed, 4 Sep 2019 07:58:58 +0100 Subject: [PATCH] OfflinePlayer: fix reading wrong NBT type in getFirstPlayed(), close #3112 This bug was introduced by 65927e69651652917c928990fb8643cfa33f0096. --- src/player/OfflinePlayer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/player/OfflinePlayer.php b/src/player/OfflinePlayer.php index f04b79eac..7768bf62f 100644 --- a/src/player/OfflinePlayer.php +++ b/src/player/OfflinePlayer.php @@ -103,7 +103,7 @@ class OfflinePlayer implements IPlayer{ } public function getFirstPlayed() : ?int{ - return ($this->namedtag !== null and $this->namedtag->hasTag("firstPlayed", LongTag::class)) ? $this->namedtag->getInt("firstPlayed") : null; + return ($this->namedtag !== null and $this->namedtag->hasTag("firstPlayed", LongTag::class)) ? $this->namedtag->getLong("firstPlayed") : null; } public function getLastPlayed() : ?int{