From 5448a48f676ac3ab5be2e942c691e13582591809 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 13 Oct 2014 18:36:13 +0200 Subject: [PATCH] Fixed Level->getCollidingEntities() --- src/pocketmine/level/Level.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pocketmine/level/Level.php b/src/pocketmine/level/Level.php index e0bf52de0..5a11821f2 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -1264,9 +1264,9 @@ class Level implements ChunkManager, Metadatable{ if($entity === null or $entity->canCollide){ $minX = Math::floorFloat(($bb->minX - 2) / 16); - $maxX = Math::floorFloat(($bb->maxX - 2) / 16); + $maxX = Math::floorFloat(($bb->maxX + 2) / 16); $minZ = Math::floorFloat(($bb->minZ - 2) / 16); - $maxZ = Math::floorFloat(($bb->maxZ - 2) / 16); + $maxZ = Math::floorFloat(($bb->maxZ + 2) / 16); for($x = $minX; $x <= $maxX; ++$x){ for($z = $minZ; $z <= $maxZ; ++$z){