mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 10:22:56 +00:00
Fixed inventory crash, fixed crafting
This commit is contained in:
@ -201,6 +201,8 @@ class BinaryStream extends \stdClass{
|
||||
$nbt = $this->get($nbtLen);
|
||||
}
|
||||
|
||||
$this->get(2); //??? (TODO)
|
||||
|
||||
return Item::get(
|
||||
$id,
|
||||
$data,
|
||||
@ -222,6 +224,7 @@ class BinaryStream extends \stdClass{
|
||||
$nbt = $item->getCompoundTag();
|
||||
$this->putLShort(strlen($nbt));
|
||||
$this->put($nbt);
|
||||
$this->put("\x00\x00"); //TODO: find out what these are
|
||||
}
|
||||
|
||||
public function getString(){
|
||||
|
Reference in New Issue
Block a user