From cfabae7583269028b96dfa5febc3a199ed9f0a9d Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Thu, 15 Feb 2024 01:02:00 +0300 Subject: [PATCH] fixed inv desync --- src/Player.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Player.php b/src/Player.php index 84b00523..5d2276d1 100755 --- a/src/Player.php +++ b/src/Player.php @@ -594,6 +594,8 @@ class Player{ } public function sendInventorySlot($s){ + $this->sendInventory(); + return; $s = (int) $s; if(!isset($this->inventory[$s])){ $pk = new ContainerSetSlotPacket; @@ -1313,7 +1315,7 @@ class Player{ $this->chunkCount = []; $this->cratingItems = []; $this->received = []; - $this->entity->close(); + //$this->entity->close(); } }