mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Improved entity movement updates
This commit is contained in:
@@ -98,6 +98,7 @@ class DroppedItem extends Entity{
|
||||
if($this->age > 6000){
|
||||
$this->kill();
|
||||
}
|
||||
|
||||
$this->updateMovement();
|
||||
|
||||
return !$this->onGround or ($this->motionX == 0 and $this->motionY == 0 and $this->motionZ == 0);
|
||||
|
||||
@@ -468,7 +468,6 @@ abstract class Entity extends Position implements Metadatable{
|
||||
}
|
||||
|
||||
$hasUpdate = false;
|
||||
$this->updateMovement();
|
||||
|
||||
$this->checkBlockCollision();
|
||||
|
||||
@@ -579,6 +578,8 @@ abstract class Entity extends Position implements Metadatable{
|
||||
|
||||
$hasUpdate = $this->entityBaseTick();
|
||||
|
||||
$this->updateMovement();
|
||||
|
||||
//if($this->isStatic())
|
||||
return true;
|
||||
//return !($this instanceof Player);
|
||||
|
||||
Reference in New Issue
Block a user