mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
More broken mess to spawn 1.2
This commit is contained in:
@ -31,20 +31,15 @@ use pocketmine\network\mcpe\NetworkSession;
|
||||
class SetEntityLinkPacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::SET_ENTITY_LINK_PACKET;
|
||||
|
||||
public $from;
|
||||
public $to;
|
||||
public $type;
|
||||
/** @var array [from, to, type, unknown byte] */
|
||||
public $link = [];
|
||||
|
||||
public function decodePayload(){
|
||||
$this->from = $this->getEntityUniqueId();
|
||||
$this->to = $this->getEntityUniqueId();
|
||||
$this->type = $this->getByte();
|
||||
$this->link = $this->getEntityLink();
|
||||
}
|
||||
|
||||
public function encodePayload(){
|
||||
$this->putEntityUniqueId($this->from);
|
||||
$this->putEntityUniqueId($this->to);
|
||||
$this->putByte($this->type);
|
||||
$this->putEntityLink($this->link);
|
||||
}
|
||||
|
||||
public function handle(NetworkSession $session) : bool{
|
||||
|
Reference in New Issue
Block a user