mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 02:08:21 +00:00
changed type of EntityLink unknown field and added a constructor
This commit is contained in:
@ -519,10 +519,11 @@ abstract class DataPacket extends BinaryStream{
|
||||
*/
|
||||
protected function getEntityLink() : EntityLink{
|
||||
$link = new EntityLink();
|
||||
|
||||
$link->fromEntityUniqueId = $this->getEntityUniqueId();
|
||||
$link->toEntityUniqueId = $this->getEntityUniqueId();
|
||||
$link->type = $this->getByte();
|
||||
$link->byte2 = $this->getByte();
|
||||
$link->bool1 = $this->getBool();
|
||||
|
||||
return $link;
|
||||
}
|
||||
@ -534,7 +535,6 @@ abstract class DataPacket extends BinaryStream{
|
||||
$this->putEntityUniqueId($link->fromEntityUniqueId);
|
||||
$this->putEntityUniqueId($link->toEntityUniqueId);
|
||||
$this->putByte($link->type);
|
||||
$this->putByte($link->byte2);
|
||||
|
||||
$this->putBool($link->bool1);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user