mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
NetworkBinaryStream: fixed not decoding items with negative IDs correctly
negative IDs are used for new block-items.
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user