From d177af329770e52b898f2e6bc5e80618d38504a0 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 17 Jun 2013 09:29:54 +0200 Subject: [PATCH] Fixed #410 --- 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 5bf7c998..380eaee6 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -785,7 +785,7 @@ class Entity extends Position{ public function isSupport(Vector3 $pos, $radius = 1){ $me = new Vector2($this->x - 0.5, $this->z - 0.5); $diff = $this->y - $pos->y; - if($me->distance(new Vector2($pos->x, $pos->z)) < $radius and $diff > 0 and $diff < 1.6){ + if($me->distance(new Vector2($pos->x, $pos->z)) < $radius and $diff > -0.7 and $diff < 1.6){ return true; } return false;