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){