mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 19:02:59 +00:00
Merge branch 'master' into mcpe-1.2
This commit is contained in:
@ -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
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user