From 07dcbdb9b0859f61e4380ed6f4d062d8b7c916bd Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Tue, 14 Oct 2014 16:03:14 +0200 Subject: [PATCH] Fixed Level->getNearbyEntities(), fixes item drops not being picked up --- 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 d820b4d2a..4f278c14b 100644 --- a/src/pocketmine/level/Level.php +++ b/src/pocketmine/level/Level.php @@ -1294,9 +1294,9 @@ class Level implements ChunkManager, Metadatable{ $nearby = []; $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){