//subdivide: fix undefined variable; update reference

This commit is contained in:
Starbeamrainbowlabs 2021-02-07 01:35:06 +00:00
parent 888ee04f9d
commit 2f5c1b759d
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 3 additions and 1 deletions

View file

@ -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. 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. **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.
``` ```

View file

@ -114,7 +114,7 @@ worldedit.register_command("subdivide", {
worldedit.player_notify_unsuppress(name) worldedit.player_notify_unsuppress(name)
-- Send updates every 2 seconds, and after the first 3 chunks are done -- 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, worldedit.player_notify(name,
string.format("%s%d / %d (~%.2f%%) complete | last chunk: %s, average: %s, %.2f%% emerge overhead, ETA: ~%s", string.format("%s%d / %d (~%.2f%%) complete | last chunk: %s, average: %s, %.2f%% emerge overhead, ETA: ~%s",
msg_prefix, msg_prefix,