From 0a4a1f634f1c5222727ce3891c7cc856b5f8ef05 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Thu, 12 Dec 2019 20:26:26 +0000 Subject: [PATCH] Item: fixed possible type violation in jsonDeserialize() --- src/item/Item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/item/Item.php b/src/item/Item.php index 1803d93f3..cf22eb13f 100644 --- a/src/item/Item.php +++ b/src/item/Item.php @@ -695,7 +695,7 @@ class Item implements \JsonSerializable{ $nbt = base64_decode($data["nbt_b64"], true); } return ItemFactory::get( - (int) $data["id"], (int) ($data["damage"] ?? 0), (int) ($data["count"] ?? 1), $nbt !== "" ? (new LittleEndianNbtSerializer())->read($nbt)->getTag() : null + (int) $data["id"], (int) ($data["damage"] ?? 0), (int) ($data["count"] ?? 1), $nbt !== "" ? (new LittleEndianNbtSerializer())->read($nbt)->mustGetCompoundTag() : null ); }