mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Fixed some corrupted states, probably fixed most invisible players cases
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user