Removed DropItemPacket field

This commit is contained in:
Shoghi Cervantes 2015-08-06 16:26:38 +02:00
parent 2cec6812a8
commit 8a3c5ab6a1
2 changed files with 2 additions and 5 deletions

View File

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

View File

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