Merge branch 'stable' into next-minor

This commit is contained in:
Dylan K. Taylor
2022-06-01 15:32:37 +01:00
8 changed files with 29 additions and 28 deletions

View File

@@ -677,7 +677,7 @@ class Item implements \JsonSerializable{
*/
public static function nbtDeserialize(CompoundTag $tag) : Item{
if($tag->getTag("id") === null || $tag->getTag("Count") === null){
return ItemFactory::getInstance()->get(0);
return VanillaItems::AIR();
}
$count = Binary::unsignByte($tag->getByte("Count"));