Skip to content

Commit

Permalink
Improve check if chunk is generated
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldexun committed Nov 5, 2023
1 parent e8bd9fa commit 512e451
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ private static boolean allChunksGenerated(WorldServer world, int[] bb) {
}
for (int x = (minX >> 4); x <= (maxX >> 4); x++) {
for (int z = (minZ >> 4); z <= (maxZ >> 4); z++) {
if (!world.isChunkGeneratedAt(x, z))
if (!world.getChunkProvider().isChunkGeneratedAt(x, z))
return false;

}
Expand Down

0 comments on commit 512e451

Please sign in to comment.