mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-17 03:08:58 +00:00
Removed DropItemPacket field
This commit is contained in:
parent
2cec6812a8
commit
8a3c5ab6a1
@ -2493,7 +2493,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
|||||||
if($this->spawned === false or $this->blocked === true or !$this->isAlive()){
|
if($this->spawned === false or $this->blocked === true or !$this->isAlive()){
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
$packet->eid = $this->id;
|
|
||||||
$item = $this->inventory->getItemInHand();
|
$item = $this->inventory->getItemInHand();
|
||||||
$ev = new PlayerDropItemEvent($this, $item);
|
$ev = new PlayerDropItemEvent($this, $item);
|
||||||
$this->server->getPluginManager()->callEvent($ev);
|
$this->server->getPluginManager()->callEvent($ev);
|
||||||
|
@ -27,13 +27,11 @@ namespace pocketmine\network\protocol;
|
|||||||
class DropItemPacket extends DataPacket{
|
class DropItemPacket extends DataPacket{
|
||||||
const NETWORK_ID = Info::DROP_ITEM_PACKET;
|
const NETWORK_ID = Info::DROP_ITEM_PACKET;
|
||||||
|
|
||||||
public $eid;
|
public $type;
|
||||||
public $unknown;
|
|
||||||
public $item;
|
public $item;
|
||||||
|
|
||||||
public function decode(){
|
public function decode(){
|
||||||
$this->eid = $this->getLong();
|
$this->type = $this->getByte();
|
||||||
$this->unknown = $this->getByte();
|
|
||||||
$this->item = $this->getSlot();
|
$this->item = $this->getSlot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user