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