From 5eb458e14e2e5cf433e38de64e323f55aae2bc87 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Tue, 3 Feb 2026 09:08:55 +0300 Subject: [PATCH] unknown -> randomly (fixed #68) --- src/Player.php | 3 ++- src/network/protocol/packet/DropItemPacket.php | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Player.php b/src/Player.php index e3861235..4bcb8769 100755 --- a/src/Player.php +++ b/src/Player.php @@ -2935,7 +2935,8 @@ class Player{ $this->toCraft = []; $this->craftingType = CraftingRecipes::TYPE_INVENTORY; $data["eid"] = $packet->eid; - $data["unknown"] = $packet->unknown; + $data["unknown"] = $packet->randomly; + $data["randomly"] = $packet->randomly; $data["item"] = $packet->item; $data["player"] = $this; if($this->blocked === false and $this->server->handle("player.drop", $data) !== false){ diff --git a/src/network/protocol/packet/DropItemPacket.php b/src/network/protocol/packet/DropItemPacket.php index 30c487bf..dd76ee21 100644 --- a/src/network/protocol/packet/DropItemPacket.php +++ b/src/network/protocol/packet/DropItemPacket.php @@ -2,7 +2,7 @@ class DropItemPacket extends RakNetDataPacket{ public $eid; - public $unknown; + public $randomly; public $item; public function pid(){ @@ -11,7 +11,7 @@ class DropItemPacket extends RakNetDataPacket{ public function decode(){ $this->eid = $this->getInt(); - $this->unknown = $this->getByte(); + $this->randomly = $this->getByte(); $this->item = $this->getSlot(); } @@ -27,4 +27,4 @@ class DropItemPacket extends RakNetDataPacket{ } return true; } -} \ No newline at end of file +}