Bugfix //subdivide: fix chunk size display

This commit is contained in:
Starbeamrainbowlabs 2020-10-10 22:41:19 +01:00
parent 830ab77cd1
commit 0cfd651510
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

@ -89,10 +89,15 @@ 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 == 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( worldedit.player_notify(name, string.format(
"%sStarting - chunk size: %s, %d chunks total (%d nodes)", "%sStarting - chunk size: %s, %d chunks total (%d nodes)",
msg_prefix, msg_prefix,
wea.vector.tostring(stats.chunk_size), wea.vector.tostring(chunk_size_display),
stats.chunks_total, stats.chunks_total,
stats.volume_nodes stats.volume_nodes
)) ))