diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index bdd7290e7..1d2702dd9 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -2493,7 +2493,6 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade if($this->spawned === false or $this->blocked === true or !$this->isAlive()){ break; } - $packet->eid = $this->id; $item = $this->inventory->getItemInHand(); $ev = new PlayerDropItemEvent($this, $item); $this->server->getPluginManager()->callEvent($ev); diff --git a/src/pocketmine/network/protocol/DropItemPacket.php b/src/pocketmine/network/protocol/DropItemPacket.php index afdd0310f..3b1b709c1 100644 --- a/src/pocketmine/network/protocol/DropItemPacket.php +++ b/src/pocketmine/network/protocol/DropItemPacket.php @@ -27,13 +27,11 @@ namespace pocketmine\network\protocol; class DropItemPacket extends DataPacket{ const NETWORK_ID = Info::DROP_ITEM_PACKET; - public $eid; - public $unknown; + public $type; public $item; public function decode(){ - $this->eid = $this->getLong(); - $this->unknown = $this->getByte(); + $this->type = $this->getByte(); $this->item = $this->getSlot(); }