mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-22 19:45:02 +00:00
//subdivide: tweak update message display
This commit is contained in:
parent
1179ecb19a
commit
555058b4ac
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue