EntityLink: rename unknown field

close #1465
This commit is contained in:
Dylan K. Taylor 2018-04-07 11:32:17 +01:00
parent 9a5f9c8586
commit 7fb237938c
2 changed files with 5 additions and 5 deletions

View File

@ -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{

View File

@ -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;
}
}