mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 23:42:59 +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)
|
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()
|
local callback_last = wea.get_ms_time()
|
||||||
state_ours.callback_subblock(
|
state_ours.callback_subblock(
|
||||||
state_ours.cpos1,
|
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
|
state_ours.times.callback_last = wea.get_ms_time() - callback_last
|
||||||
table.insert(state_ours.times.callback, state_ours.times.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
|
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)
|
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)
|
wea.subdivide(pos1, pos2, chunk_size, function(cpos1, cpos2, stats)
|
||||||
-- Called on every subblock
|
-- Called on every subblock
|
||||||
if stats.chunks_completed == 0 then
|
if stats.chunks_completed == 1 then
|
||||||
local chunk_size_display = {
|
local chunk_size_display = {
|
||||||
x = stats.chunk_size.x + 1,
|
x = stats.chunk_size.x + 1,
|
||||||
y = stats.chunk_size.y + 1,
|
y = stats.chunk_size.y + 1,
|
||||||
|
|
Loading…
Reference in a new issue