Skip to content

Commit

Permalink
fix: wrong nested loop.
Browse files Browse the repository at this point in the history
Nasty loops!
  • Loading branch information
ronoaldo committed Dec 2, 2023
1 parent c49a4e7 commit c0975a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion process_export_protected.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func ProccessExportAllProtected() error {
// at the edge of a mapblock/mapchunk.
for x := chunkx - 1; x <= chunkx+1; x++ {
for y := chunky - 1; y <= chunky+1; y++ {
for z := chunkz - 1; x <= chunkz+1; z++ {
for z := chunkz - 1; z <= chunkz+1; z++ {
key := GetChunkKey(x, y, z)
if exported_chunks[key] {
D("chunk already exported, skipping", f{"key": key})
Expand Down

0 comments on commit c0975a4

Please sign in to comment.