Added Entity->onGround setting when entities keep moving without checks

This commit is contained in:
Shoghi Cervantes 2014-10-29 00:41:13 +01:00
parent 7eed92e8fb
commit cbe0fe5e46

View File

@ -818,6 +818,7 @@ abstract class Entity extends Location implements Metadatable{
$this->boundingBox->offset($dx, $dy, $dz);
$pos = Vector3::createVector(($this->boundingBox->minX + $this->boundingBox->maxX) / 2, $this->boundingBox->minY - $this->ySize, ($this->boundingBox->minZ + $this->boundingBox->maxZ) / 2);
$this->setPosition($pos);
$this->onGround = $this instanceof Player ? true : false;
}else{
Timings::$entityMoveTimer->startTiming();