mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 05:15:13 +00:00
NetworkBinaryStream: fixed not decoding items with negative IDs correctly
negative IDs are used for new block-items.
This commit is contained in:
parent
1e21066c1c
commit
58279d4cfe
@ -65,7 +65,7 @@ class NetworkBinaryStream extends BinaryStream{
|
|||||||
|
|
||||||
public function getSlot() : Item{
|
public function getSlot() : Item{
|
||||||
$id = $this->getVarInt();
|
$id = $this->getVarInt();
|
||||||
if($id <= 0){
|
if($id === 0){
|
||||||
return ItemFactory::get(0, 0, 0);
|
return ItemFactory::get(0, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user