mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-19 04:05:31 +00:00
Fixed entity motion condition
This commit is contained in:
parent
1bc3b66afd
commit
0c6eaa0609
@ -866,7 +866,7 @@ class Entity extends Position{
|
|||||||
$speedX = ($this->last[0] - $this->x) / $diffTime;
|
$speedX = ($this->last[0] - $this->x) / $diffTime;
|
||||||
$speedY = ($this->last[1] - $this->y) / $diffTime;
|
$speedY = ($this->last[1] - $this->y) / $diffTime;
|
||||||
$speedZ = ($this->last[2] - $this->z) / $diffTime;
|
$speedZ = ($this->last[2] - $this->z) / $diffTime;
|
||||||
if($this->speedX != $speedX or $this->speedY = $speedY or $this->speedZ = $speedZ){
|
if($this->speedX != $speedX or $this->speedY != $speedY or $this->speedZ != $speedZ){
|
||||||
$this->speedX = $speedX;
|
$this->speedX = $speedX;
|
||||||
$this->speedY = $speedY;
|
$this->speedY = $speedY;
|
||||||
$this->speedZ = $speedZ;
|
$this->speedZ = $speedZ;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user