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->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){

View file

@ -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;
}
}
}