diff --git a/worldeditadditions/lib/subdivide.lua b/worldeditadditions/lib/subdivide.lua index 06c1527..6ecab8f 100644 --- a/worldeditadditions/lib/subdivide.lua +++ b/worldeditadditions/lib/subdivide.lua @@ -94,6 +94,8 @@ local function subdivide_step_afterload(state_emerge, state_ours) merge_stats(state_emerge.stats, state_ours.stats_emerge) + state_ours.chunks_completed = state_ours.chunks_completed + 1 + local callback_last = wea.get_ms_time() state_ours.callback_subblock( state_ours.cpos1, @@ -102,7 +104,6 @@ local function subdivide_step_afterload(state_emerge, state_ours) ) state_ours.times.callback_last = wea.get_ms_time() - callback_last table.insert(state_ours.times.callback, state_ours.times.callback_last) - state_ours.chunks_completed = state_ours.chunks_completed + 1 state_ours.times.step_last = wea.get_ms_time() - state_ours.times.step_start_abs table.insert(state_ours.times.steps, state_ours.times.step_last) diff --git a/worldeditadditions_commands/commands/meta/subdivide.lua b/worldeditadditions_commands/commands/meta/subdivide.lua index 4ad7779..ebb2f93 100644 --- a/worldeditadditions_commands/commands/meta/subdivide.lua +++ b/worldeditadditions_commands/commands/meta/subdivide.lua @@ -88,7 +88,7 @@ worldedit.register_command("subdivide", { wea.subdivide(pos1, pos2, chunk_size, function(cpos1, cpos2, stats) -- Called on every subblock - if stats.chunks_completed == 0 then + if stats.chunks_completed == 1 then local chunk_size_display = { x = stats.chunk_size.x + 1, y = stats.chunk_size.y + 1,