From 51a3043dfd37d67a3de2b8611d8d47ef999b386f Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 20 Feb 2022 20:29:51 +0000 Subject: [PATCH] PlayerInventory: fixed isHotbarSlot() returning bogus result for 9 --- src/inventory/PlayerInventory.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inventory/PlayerInventory.php b/src/inventory/PlayerInventory.php index 1da30d2e98..baeecb5af5 100644 --- a/src/inventory/PlayerInventory.php +++ b/src/inventory/PlayerInventory.php @@ -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(); } /**