mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
This should never be null
This commit is contained in:
parent
8fc38c36f9
commit
8ef24423d1
@ -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),
|
||||
]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user