From 57bb8f14fa17bb913c03c4e329d4c0733028dc92 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 6 Oct 2014 11:47:28 +0200 Subject: [PATCH] Fixed Player movement collision checks --- src/pocketmine/entity/Entity.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index fa70052ea..41380ee29 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -948,7 +948,7 @@ abstract class Entity extends Position implements Metadatable{ if($this instanceof Player){ if(($this->onGround and $movY != 0) or (!$this->onGround and $movY <= 0)){ - if(count($this->getLevel()->getCollisionBlocks($this->boundingBox->getOffsetBoundingBox(0, $movY - 0.1, 0))) > 0){ + if(count($this->getLevel()->getCollisionBlocks($this->boundingBox->getOffsetBoundingBox(0, $movY - 0.1, 0)->expand(0.01, 0, 0.01))) > 0){ $isColliding = true; }else{ $isColliding = false;