NetworkBinaryStream: fixed not decoding items with negative IDs correctly

negative IDs are used for new block-items.
This commit is contained in:
Dylan K. Taylor 2018-04-11 13:01:23 +01:00
parent 1e21066c1c
commit 58279d4cfe

View File

@ -65,7 +65,7 @@ class NetworkBinaryStream extends BinaryStream{
public function getSlot() : Item{
$id = $this->getVarInt();
if($id <= 0){
if($id === 0){
return ItemFactory::get(0, 0, 0);
}