This should never be null

This commit is contained in:
Dylan K. Taylor 2017-06-16 15:48:08 +01:00
parent 8fc38c36f9
commit 8ef24423d1

View File

@ -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),
]);