From 432eb36b833ccaeea3c5b24033660f6a73de81bf Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Fri, 12 Apr 2013 14:06:12 +0200 Subject: [PATCH] Fixed support check height difference --- src/world/Entity.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/world/Entity.php b/src/world/Entity.php index 818dc5a6..ed0566ee 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -347,7 +347,6 @@ class Entity extends stdClass{ } }elseif($this->class === ENTITY_PLAYER){ if($support === false and $this->player->gamemode !== CREATIVE){ - console("flying!"); if($this->fallY === false or $this->fallStart === false){ $this->fallY = $y; $this->fallStart = microtime(true); @@ -576,7 +575,7 @@ class Entity extends stdClass{ public function isSupport(Vector3 $pos, $radius = 0.85){ $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.8 and $diff < 1.2){ + if($me->distance($pos) < $radius and $diff > 0 and $diff < 1.2){ return true; } return false;