Fixed inventory crash, fixed crafting

This commit is contained in:
Dylan K. Taylor
2017-04-02 10:58:39 +01:00
parent 9c25ec3afd
commit f7e959d602
2 changed files with 12 additions and 2 deletions

View File

@ -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(){