mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
parent
9a5f9c8586
commit
7fb237938c
@ -470,7 +470,7 @@ class NetworkBinaryStream extends BinaryStream{
|
||||
$link->fromEntityUniqueId = $this->getEntityUniqueId();
|
||||
$link->toEntityUniqueId = $this->getEntityUniqueId();
|
||||
$link->type = $this->getByte();
|
||||
$link->bool1 = $this->getBool();
|
||||
$link->immediate = $this->getBool();
|
||||
|
||||
return $link;
|
||||
}
|
||||
@ -482,7 +482,7 @@ class NetworkBinaryStream extends BinaryStream{
|
||||
$this->putEntityUniqueId($link->fromEntityUniqueId);
|
||||
$this->putEntityUniqueId($link->toEntityUniqueId);
|
||||
$this->putByte($link->type);
|
||||
$this->putBool($link->bool1);
|
||||
$this->putBool($link->immediate);
|
||||
}
|
||||
|
||||
protected function getCommandOriginData() : CommandOriginData{
|
||||
|
@ -32,12 +32,12 @@ class EntityLink{
|
||||
/** @var int */
|
||||
public $type;
|
||||
/** @var bool */
|
||||
public $bool1;
|
||||
public $immediate; //for dismounting on mount death
|
||||
|
||||
public function __construct(int $fromEntityUniqueId = null, int $toEntityUniqueId = null, int $type = null, bool $bool1 = null){
|
||||
public function __construct(int $fromEntityUniqueId = null, int $toEntityUniqueId = null, int $type = null, bool $immediate = false){
|
||||
$this->fromEntityUniqueId = $fromEntityUniqueId;
|
||||
$this->toEntityUniqueId = $toEntityUniqueId;
|
||||
$this->type = $type;
|
||||
$this->bool1 = $bool1;
|
||||
$this->immediate = $immediate;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user