Merge branch 'master' into mcpe-1.2

This commit is contained in:
Dylan K. Taylor
2017-08-23 13:20:35 +01:00
12 changed files with 28 additions and 20 deletions

View File

@ -300,8 +300,6 @@ abstract class Entity extends Location implements Metadatable{
public $height;
/** @var float */
public $width;
/** @var float */
public $length;
/** @var float */
protected $baseOffset = 0.0;
@ -1352,9 +1350,9 @@ abstract class Entity extends Location implements Metadatable{
final public function hasMovementUpdate() : bool{
return (
$this->forceMovementUpdate or
abs($this->motionX) > self::MOTION_THRESHOLD or
abs($this->motionY) > self::MOTION_THRESHOLD or
abs($this->motionZ) > self::MOTION_THRESHOLD or
$this->motionX != 0 or
$this->motionY != 0 or
$this->motionZ != 0 or
!$this->onGround
);
}