mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-20 16:00:20 +00:00
Fixed Level->getNearbyEntities(), fixes item drops not being picked up
This commit is contained in:
parent
60ca24fe0e
commit
07dcbdb9b0
@ -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){
|
||||
|
Loading…
x
Reference in New Issue
Block a user