Fixed some corrupted states, probably fixed most invisible players cases

This commit is contained in:
Shoghi Cervantes
2015-06-04 15:46:57 +02:00
parent 14ff537e71
commit 05dbf7b47f
3 changed files with 6 additions and 7 deletions

View File

@ -1716,9 +1716,9 @@ class Level implements ChunkManager, Metadatable{
$nearby = [];
$minX = Math::floorFloat(($bb->minX - 2) / 16);
$maxX = Math::ceilFloat(($bb->maxX + 2) / 16 + 1);
$maxX = Math::ceilFloat(($bb->maxX + 2) / 16);
$minZ = Math::floorFloat(($bb->minZ - 2) / 16);
$maxZ = Math::ceilFloat(($bb->maxZ + 2) / 16 + 1);
$maxZ = Math::ceilFloat(($bb->maxZ + 2) / 16);
for($x = $minX; $x <= $maxX; ++$x){
for($z = $minZ; $z <= $maxZ; ++$z){