Fixed some weak comparisons

This commit is contained in:
Dylan K. Taylor
2017-06-05 21:07:24 +01:00
parent 6ea0eb47ec
commit b7b7bcee4f
6 changed files with 8 additions and 8 deletions

View File

@ -763,8 +763,8 @@ abstract class Entity extends Location implements Metadatable{
$this->namedtag->FallDistance = new FloatTag("FallDistance", $this->fallDistance);
$this->namedtag->Fire = new ShortTag("Fire", $this->fireTicks);
$this->namedtag->Air = new ShortTag("Air", $this->getDataProperty(self::DATA_AIR));
$this->namedtag->OnGround = new ByteTag("OnGround", $this->onGround == true ? 1 : 0);
$this->namedtag->Invulnerable = new ByteTag("Invulnerable", $this->invulnerable == true ? 1 : 0);
$this->namedtag->OnGround = new ByteTag("OnGround", $this->onGround ? 1 : 0);
$this->namedtag->Invulnerable = new ByteTag("Invulnerable", $this->invulnerable ? 1 : 0);
if(count($this->effects) > 0){
$effects = [];