PlayerInventory: fixed isHotbarSlot() returning bogus result for 9

This commit is contained in:
Dylan K. Taylor 2022-02-20 20:29:51 +00:00
parent 7098bcec8c
commit 51a3043dfd
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -49,7 +49,7 @@ class PlayerInventory extends SimpleInventory{
}
public function isHotbarSlot(int $slot) : bool{
return $slot >= 0 && $slot <= $this->getHotbarSize();
return $slot >= 0 && $slot < $this->getHotbarSize();
}
/**