mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-19 01:44:06 +00:00
Fixed falling entities falling upwards
This commit is contained in:
parent
71584288dc
commit
f6ab39a526
@ -382,7 +382,7 @@ class Entity extends Position{
|
||||
$x = (int) ($this->x - 0.5);
|
||||
$z = (int) ($this->z - 0.5);
|
||||
$lim = (int) floor($ny);
|
||||
for($y = (int) ceil($this->y); $y >= $lim; --$y){
|
||||
for($y = (int) ceil($this->y) - 1; $y >= $lim; --$y){
|
||||
if($this->level->getBlock(new Vector3($x, $y, $z))->isFlowable !== true){
|
||||
$ny = $y + 1;
|
||||
$this->speedY = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user