Entity: removed unused field

This commit is contained in:
Dylan K. Taylor 2020-07-09 14:10:37 +01:00
parent c1a815a458
commit c762ec1319

View File

@ -170,8 +170,6 @@ abstract class Entity{
public $noDamageTicks = 0; public $noDamageTicks = 0;
/** @var bool */ /** @var bool */
protected $justCreated = true; protected $justCreated = true;
/** @var bool */
private $invulnerable = false;
/** @var AttributeMap */ /** @var AttributeMap */
protected $attributeMap; protected $attributeMap;
@ -472,7 +470,6 @@ abstract class Entity{
$nbt->setFloat("FallDistance", $this->fallDistance); $nbt->setFloat("FallDistance", $this->fallDistance);
$nbt->setShort("Fire", $this->fireTicks); $nbt->setShort("Fire", $this->fireTicks);
$nbt->setByte("OnGround", $this->onGround ? 1 : 0); $nbt->setByte("OnGround", $this->onGround ? 1 : 0);
$nbt->setByte("Invulnerable", $this->invulnerable ? 1 : 0);
return $nbt; return $nbt;
} }
@ -481,7 +478,6 @@ abstract class Entity{
$this->fireTicks = $nbt->getShort("Fire", 0); $this->fireTicks = $nbt->getShort("Fire", 0);
$this->onGround = $nbt->getByte("OnGround", 0) !== 0; $this->onGround = $nbt->getByte("OnGround", 0) !== 0;
$this->invulnerable = $nbt->getByte("Invulnerable", 0) !== 0;
$this->fallDistance = $nbt->getFloat("FallDistance", 0.0); $this->fallDistance = $nbt->getFloat("FallDistance", 0.0);