mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Moved EntityLink to its own type
This commit is contained in:
@ -27,12 +27,13 @@ namespace pocketmine\network\mcpe\protocol;
|
||||
|
||||
|
||||
use pocketmine\network\mcpe\NetworkSession;
|
||||
use pocketmine\network\mcpe\protocol\types\EntityLink;
|
||||
|
||||
class SetEntityLinkPacket extends DataPacket{
|
||||
const NETWORK_ID = ProtocolInfo::SET_ENTITY_LINK_PACKET;
|
||||
|
||||
/** @var array [from, to, type, unknown byte] */
|
||||
public $link = [];
|
||||
/** @var EntityLink */
|
||||
public $link;
|
||||
|
||||
protected function decodePayload(){
|
||||
$this->link = $this->getEntityLink();
|
||||
|
Reference in New Issue
Block a user