Fixed Level->getCollidingEntities()

This commit is contained in:
Shoghi Cervantes 2014-10-13 18:36:13 +02:00
parent a10ad42a13
commit 5448a48f67

View File

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