From 8ef24423d18c6ba7508c63c3d60a8aef06370fec Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Fri, 16 Jun 2017 15:48:08 +0100 Subject: [PATCH] This should never be null --- src/pocketmine/item/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/item/Item.php b/src/pocketmine/item/Item.php index dc5b1f304..b49ea708a 100644 --- a/src/pocketmine/item/Item.php +++ b/src/pocketmine/item/Item.php @@ -1009,7 +1009,7 @@ class Item implements ItemIds, \JsonSerializable{ public function nbtSerialize(int $slot = -1, string $tagName = "") : CompoundTag{ $tag = new CompoundTag($tagName, [ "id" => new ShortTag("id", $this->id), - "Count" => new ByteTag("Count", $this->count ?? -1), + "Count" => new ByteTag("Count", $this->count), "Damage" => new ShortTag("Damage", $this->meta), ]);