mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-21 04:32:34 +00:00
Co-authored-by: Yurii <[email protected]> Co-authored-by: Martin Robertz <[email protected]> Co-authored-by: micvog <[email protected]>
This commit is contained in:
1 file changed
+3
@@ -58,6 +58,9 @@ public class BlockUtil {
|
||||
|
||||
for (int chunkX = minChunkX; chunkX <= maxChunkX; ++chunkX) {
|
||||
for (int chunkZ = minChunkZ; chunkZ <= maxChunkZ; ++chunkZ) {
|
||||
if (!world.blockExists(chunkX << 4, 0, chunkZ << 4)) {
|
||||
continue;
|
||||
}
|
||||
Chunk chunk = world.getChunkFromChunkCoords(chunkX, chunkZ);
|
||||
if (chunk != null) searchChunks.add(chunk);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user