Skip to content

Commit

Permalink
fixed warnings when switching gamemode
Browse files Browse the repository at this point in the history
  • Loading branch information
GameHerobrine committed Jul 5, 2024
1 parent 9aa0986 commit 205e432
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Player.php
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 205e432

Please sign in to comment.