mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Cleaned up muddled varint/varlong mess, added separate methods for entity unique and runtime ids, moved some MCPE-protocol-specific methods out of BinaryStream
This commit is contained in:
@ -39,8 +39,8 @@ class SetEntityLinkPacket extends DataPacket{
|
||||
|
||||
public function encode(){
|
||||
$this->reset();
|
||||
$this->putEntityId($this->from);
|
||||
$this->putEntityId($this->to);
|
||||
$this->putEntityUniqueId($this->from);
|
||||
$this->putEntityUniqueId($this->to);
|
||||
$this->putByte($this->type);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user