diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 52e8eb3b4..a31365ef2 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -791,7 +791,7 @@ abstract class Entity extends Position implements Metadatable{ $dz = 0; } - $fallingFlag = ($this->onGround or $dy != $movY and $movY < 0); + $fallingFlag = ($this->onGround or ($dy != $movY and $movY < 0)); foreach($list as $bb){ $dx = $bb->calculateXOffset($this->boundingBox, $dx); @@ -884,7 +884,6 @@ abstract class Entity extends Position implements Metadatable{ $this->boundingBox->setBB($axisalignedbb1); } - } $pos = new Vector3(