mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Fix dataless crafting and furnace recipes
This commit is contained in:
@ -233,7 +233,7 @@ class BinaryStream extends \stdClass{
|
||||
}
|
||||
|
||||
$this->putVarInt($item->getId());
|
||||
$auxValue = ($item->getDamage() << 8) | $item->getCount();
|
||||
$auxValue = (($item->getDamage() ?? -1) << 8) | $item->getCount();
|
||||
$this->putVarInt($auxValue);
|
||||
$nbt = $item->getCompoundTag();
|
||||
$this->putLShort(strlen($nbt));
|
||||
|
Reference in New Issue
Block a user