From a0df0a8fffa2cd9dbf23cba8ef961efe63275be4 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 25 Aug 2014 16:53:20 +0200 Subject: [PATCH] Fixed player fall damage --- src/pocketmine/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/Player.php b/src/pocketmine/Player.php index e23518bc0..9a5e9527f 100644 --- a/src/pocketmine/Player.php +++ b/src/pocketmine/Player.php @@ -1332,7 +1332,7 @@ class Player extends Human implements CommandSender, InventoryHolder, IPlayer{ $dy = $newPos->y - $this->y; - if(($this->onGround and $dy > 0) or (!$this->onGround and $dy <= 0)){ + if(($this->onGround and $dy != 0) or (!$this->onGround and $dy <= 0)){ if(count($this->getLevel()->getCollisionBlocks($this->boundingBox->getOffsetBoundingBox(0, $dy - 0.1, 0))) > 0){ $isColliding = true; }else{