From f6ab39a526e6b564297aac77fe26cebaca5e9ad4 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Wed, 29 May 2013 12:18:35 +0200 Subject: [PATCH] Fixed falling entities falling upwards --- src/world/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/world/Entity.php b/src/world/Entity.php index a9b40dd6a7..b8f10d0d57 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -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;