mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-05 17:36:12 +00:00
This should never be null
This commit is contained in:
@ -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),
|
||||
]);
|
||||
|
||||
|
Reference in New Issue
Block a user