From c0975a492717a4dbdf8c0f9ab9e373ffbe9e2964 Mon Sep 17 00:00:00 2001 From: Ronoaldo JLP Date: Sat, 2 Dec 2023 15:53:30 -0300 Subject: [PATCH] fix: wrong nested loop. Nasty loops! --- process_export_protected.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/process_export_protected.go b/process_export_protected.go index a5f2550..0dbcded 100644 --- a/process_export_protected.go +++ b/process_export_protected.go @@ -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})