Fixed entities getting OnGround default to true

This commit is contained in:
Shoghi Cervantes
2014-09-30 13:13:31 +02:00
parent 69fb7ae525
commit f8378c09ba
6 changed files with 7 additions and 17 deletions

View File

@@ -198,7 +198,7 @@ abstract class Entity extends Position implements Metadatable{
$this->airTicks = $this->namedtag["Air"];
if(!isset($this->namedtag->OnGround)){
$this->namedtag->OnGround = new Byte("OnGround", 1);
$this->namedtag->OnGround = new Byte("OnGround", 0);
}
$this->onGround = $this->namedtag["OnGround"] > 0 ? true : false;