mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
//subdivide: fix undefined variable; update reference
This commit is contained in:
parent
888ee04f9d
commit
2f5c1b759d
2 changed files with 3 additions and 1 deletions
|
@ -359,6 +359,8 @@ Note that this command only works with WorldEdit commands, and only those which
|
|||
|
||||
Note also that `<cmd_name>` should _not_ be prefixed with _any_ forward slashes - see the examples below.
|
||||
|
||||
While other server commands can be executed while a `//subdivide` is running, `//subdivide` manipulates your player's defined region when running. This has the side-effect that you can check on where it has got up to with `//p get` for example - but means that attempting to change your pos1 & pos2 manually will have no effect until the `//subdivide` completes.
|
||||
|
||||
**Warning:** Once started, this command cannot be stopped without restarting your server! This is the case with all WorldEdit commands, but it's worth a special mention here.
|
||||
|
||||
```
|
||||
|
|
|
@ -114,7 +114,7 @@ worldedit.register_command("subdivide", {
|
|||
worldedit.player_notify_unsuppress(name)
|
||||
|
||||
-- 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 or i == stats.chunks_total then
|
||||
if worldeditadditions.get_ms_time() - time_last_msg > 2 * 1000 or stats.chunks_completed == 3 or stats.chunks_completed == stats.chunks_total then
|
||||
worldedit.player_notify(name,
|
||||
string.format("%s%d / %d (~%.2f%%) complete | last chunk: %s, average: %s, %.2f%% emerge overhead, ETA: ~%s",
|
||||
msg_prefix,
|
||||
|
|
Loading…
Reference in a new issue