From 3ce6040bf36e738c2c174acd56ecba28d2260a1b Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Tue, 11 Jul 2023 06:45:50 +0300 Subject: [PATCH] test fix --- src/Player.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Player.php b/src/Player.php index 35c6fd99..763a6cdc 100755 --- a/src/Player.php +++ b/src/Player.php @@ -1561,16 +1561,16 @@ class Player{ $data["eid"] = $packet->eid; $data["player"] = $this; - if($packet->slot === 0x28 or $packet->slot === 0){ //0 for 0.8.0 compatibility + /*if($packet->slot === 0x28 or $packet->slot === 0){ //0 for 0.8.0 compatibility $data["slot"] = -1; $data["item"] = BlockAPI::getItem(AIR, 0, 0); if($this->server->handle("player.equipment.change", $data) !== false){ $this->slot = -1; } break; - }else{ + }else{*/ $packet->slot -= 9; - } + //} if(($this->gamemode & 0x01) === SURVIVAL){