Fixed Level->getNearbyEntities(), fixes item drops not being picked up

This commit is contained in:
Shoghi Cervantes 2014-10-14 16:03:14 +02:00
parent 60ca24fe0e
commit 07dcbdb9b0

View File

@ -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){