mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-27 17:43:53 +01:00
Bugfix //subdivide: fix chunk size display
This commit is contained in:
parent
830ab77cd1
commit
0cfd651510
@ -89,10 +89,15 @@ worldedit.register_command("subdivide", {
|
||||
wea.subdivide(pos1, pos2, chunk_size, function(cpos1, cpos2, stats)
|
||||
-- Called on every subblock
|
||||
if stats.chunks_completed == 0 then
|
||||
local chunk_size_display = {
|
||||
x = stats.chunk_size.x + 1,
|
||||
y = stats.chunk_size.y + 1,
|
||||
z = stats.chunk_size.z + 1
|
||||
}
|
||||
worldedit.player_notify(name, string.format(
|
||||
"%sStarting - chunk size: %s, %d chunks total (%d nodes)",
|
||||
msg_prefix,
|
||||
wea.vector.tostring(stats.chunk_size),
|
||||
wea.vector.tostring(chunk_size_display),
|
||||
stats.chunks_total,
|
||||
stats.volume_nodes
|
||||
))
|
||||
|
Loading…
Reference in New Issue
Block a user