unknown -> randomly (fixed #68)

This commit is contained in:
GameHerobrine 2026-02-03 09:08:55 +03:00
parent 3fb4198210
commit 5eb458e14e
2 changed files with 5 additions and 4 deletions

View file

@ -2935,7 +2935,8 @@ class Player{
$this->toCraft = []; $this->toCraft = [];
$this->craftingType = CraftingRecipes::TYPE_INVENTORY; $this->craftingType = CraftingRecipes::TYPE_INVENTORY;
$data["eid"] = $packet->eid; $data["eid"] = $packet->eid;
$data["unknown"] = $packet->unknown; $data["unknown"] = $packet->randomly;
$data["randomly"] = $packet->randomly;
$data["item"] = $packet->item; $data["item"] = $packet->item;
$data["player"] = $this; $data["player"] = $this;
if($this->blocked === false and $this->server->handle("player.drop", $data) !== false){ if($this->blocked === false and $this->server->handle("player.drop", $data) !== false){

View file

@ -2,7 +2,7 @@
class DropItemPacket extends RakNetDataPacket{ class DropItemPacket extends RakNetDataPacket{
public $eid; public $eid;
public $unknown; public $randomly;
public $item; public $item;
public function pid(){ public function pid(){
@ -11,7 +11,7 @@ class DropItemPacket extends RakNetDataPacket{
public function decode(){ public function decode(){
$this->eid = $this->getInt(); $this->eid = $this->getInt();
$this->unknown = $this->getByte(); $this->randomly = $this->getByte();
$this->item = $this->getSlot(); $this->item = $this->getSlot();
} }