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