Skip to content

Commit

Permalink
Fix incorrect variable usage in retrieving chunks
Browse files Browse the repository at this point in the history
Thanks to @HowardZHY for finding this
  • Loading branch information
Grayray75 committed Mar 31, 2024
1 parent a934311 commit e1c06f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static void scheduleRelightChecksForChunkBoundaries(final World world, fi
final int xOffset = dir.getOffsetX();
final int zOffset = dir.getOffsetZ();

final Chunk nChunk = world.getChunkProvider().getLoadedChunk(chunk.chunkX + xOffset, chunk.chunkX + zOffset);
final Chunk nChunk = world.getChunkProvider().getLoadedChunk(chunk.chunkX + xOffset, chunk.chunkZ + zOffset);

if (nChunk == null) {
continue;
Expand Down

0 comments on commit e1c06f9

Please sign in to comment.