mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-16 08:25:29 +00:00
Fixed Entity floor drag
This commit is contained in:
parent
e67a7a510e
commit
71584288dc
@ -398,7 +398,7 @@ class Entity extends Position{
|
|||||||
$this->speedY -= ($this->class === ENTITY_FALLING ? 16:32) * $tdiff;
|
$this->speedY -= ($this->class === ENTITY_FALLING ? 16:32) * $tdiff;
|
||||||
$update = true;
|
$update = true;
|
||||||
}else{
|
}else{
|
||||||
if($this->speedY < 0){
|
if($this->speedY <= 0){
|
||||||
$this->speedX = 0;
|
$this->speedX = 0;
|
||||||
$this->speedY = 0;
|
$this->speedY = 0;
|
||||||
$this->speedZ = 0;
|
$this->speedZ = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user