mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
unknown -> randomly (fixed #68)
This commit is contained in:
parent
3fb4198210
commit
5eb458e14e
2 changed files with 5 additions and 4 deletions
|
|
@ -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){
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue