From 5c2a2ecd6d1fc5d93765793689d35520b5a01496 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Fri, 12 Apr 2013 14:09:36 +0200 Subject: [PATCH] Added a security radius for flying --- 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 ed0566ee..3e6dd56b 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -572,7 +572,7 @@ class Entity extends stdClass{ return false; } - public function isSupport(Vector3 $pos, $radius = 0.85){ + public function isSupport(Vector3 $pos, $radius = 1){ $me = new Vector3($this->x - 0.5, $pos->y, $this->z - 0.5); $diff = $this->y - $pos->y; if($me->distance($pos) < $radius and $diff > 0 and $diff < 1.2){