mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 15:33:00 +00:00
Bugfix //subdivide: fix chunk size display
This commit is contained in:
parent
830ab77cd1
commit
0cfd651510
1 changed files with 6 additions and 1 deletions
|
@ -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 a new issue