//subdivide: print update whent he last chunk is completed

....it's very misleading otherwise.
This commit is contained in:
Starbeamrainbowlabs 2020-09-20 17:38:58 +01:00
parent d2b38d0ea1
commit 358fac7c7c
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
2 changed files with 2 additions and 1 deletions

View File

@ -8,6 +8,7 @@ It's about time I started a changelog! This will serve from now on as the master
- Add `//fillcaves` command - fills in all air nodes beneath non air-nodes
- Add `//forest` command for quickly generating forests
- Fix some minor bugs and edge cases
- `//subdivide`: Print status update when completing the last chunk
## v1.8: The Quality of Life Update (17th July 2020)

View File

@ -136,7 +136,7 @@ worldedit.register_command("subdivide", {
print("eta", eta, "time_average", time_average, "chunks_left", chunks_total - i)
-- Send updates every 2 seconds, and after the first 3 chunks are done
if worldeditadditions.get_ms_time() - time_last_msg > 2 * 1000 or i == 3 then
if worldeditadditions.get_ms_time() - time_last_msg > 2 * 1000 or i == 3 or i == chunks_total then
worldedit.player_notify(name,
msg_prefix
..i.." / "..chunks_total.." (~"