From 205e432f52182ab821e3ce9824f63fbe5c505c0a Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Sat, 6 Jul 2024 02:21:51 +0300 Subject: [PATCH] fixed warnings when switching gamemode --- src/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.php b/src/Player.php index 96fa2c888..82f6a0bc5 100755 --- a/src/Player.php +++ b/src/Player.php @@ -1791,7 +1791,7 @@ public function handleDataPacket(RakNetDataPacket $packet){ if($this->server->handle("player.equipment.change", $data) !== false){ $this->slot = $packet->slot; - if(($this->gamemode & 0x01) === SURVIVAL){ + if(($this->gamemode & 0x01) === SURVIVAL && count($this->hotbar) >= $this->slotCount){ $has = false; for($i = 0; $i < $this->slotCount; ++$i){