mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
PlayerInventory: fixed isHotbarSlot() returning bogus result for 9
This commit is contained in:
parent
7098bcec8c
commit
51a3043dfd
@ -49,7 +49,7 @@ class PlayerInventory extends SimpleInventory{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function isHotbarSlot(int $slot) : bool{
|
public function isHotbarSlot(int $slot) : bool{
|
||||||
return $slot >= 0 && $slot <= $this->getHotbarSize();
|
return $slot >= 0 && $slot < $this->getHotbarSize();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user