mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 09:19:42 +00:00
>= <= on move
This commit is contained in:
parent
d19631226f
commit
7d1313c63d
@ -1118,8 +1118,8 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{
|
|||||||
$diffX = $this->x - $this->newPosition->x;
|
$diffX = $this->x - $this->newPosition->x;
|
||||||
$diffZ = $this->z - $this->newPosition->z;
|
$diffZ = $this->z - $this->newPosition->z;
|
||||||
$diffY = $this->y - $this->newPosition->y;
|
$diffY = $this->y - $this->newPosition->y;
|
||||||
if($diffY > -0.5 or $diffY < 0.5){
|
if($diffY >= -0.5 or $diffY <= 0.5){
|
||||||
$diffY = 0;
|
$diffY = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$diff = $diffX ** 2 + $diffY ** 2 + $diffZ ** 2;
|
$diff = $diffX ** 2 + $diffY ** 2 + $diffZ ** 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user