From 9373c93737d3bfc1dffd7484bf554f9cadf27878 Mon Sep 17 00:00:00 2001 From: "beN39sGroup (Blue Electric)" Date: Sun, 10 Nov 2013 13:52:41 +0900 Subject: [PATCH] Prefix for Kick Flying when Player on Fence --- src/world/Entity.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/world/Entity.php b/src/world/Entity.php index 33cd7a4cd..373bbe6d1 100644 --- a/src/world/Entity.php +++ b/src/world/Entity.php @@ -410,7 +410,8 @@ class Entity extends Position{ if($this->isStatic === false){ $startX = floor($this->x - 0.5 - $this->size - 1); - $y = (int) round($this->y - 1); + //prefix for flying when player on fence + $y = (int) floor($this->y - 1); $startZ = floor($this->z - 0.5 - $this->size - 1); $endX = ceil($this->x - 0.5 + $this->size + 1); $endZ = ceil($this->z - 0.5 + $this->size + 1);