mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-22 07:23:00 +00:00
//airapply: error handling
This commit is contained in:
parent
e1b1efb7ed
commit
10a649e597
2 changed files with 6 additions and 1 deletions
|
@ -12,8 +12,12 @@ Note to self: See the bottom of this file for the release template text.
|
||||||
- `//layers`: Add optional slope constraint (inspired by [WorldPainter](https://worldpainter.net/))
|
- `//layers`: Add optional slope constraint (inspired by [WorldPainter](https://worldpainter.net/))
|
||||||
- `//bonemeal`: Add optional node list constraint
|
- `//bonemeal`: Add optional node list constraint
|
||||||
- `//walls`: Add optional thickness argument
|
- `//walls`: Add optional thickness argument
|
||||||
- `//floodfill`: Fix crash caused by internal refactoring of the `Queue` data structure
|
|
||||||
- `//sstack`: Add human-readable approx volumes of regions in the selection stack
|
- `//sstack`: Add human-readable approx volumes of regions in the selection stack
|
||||||
|
|
||||||
|
|
||||||
|
### Bugfixes
|
||||||
|
- `//airapply`: Improve error handling
|
||||||
|
- `//floodfill`: Fix crash caused by internal refactoring of the `Queue` data structure
|
||||||
- `//spop`: Fix wording in displayed message
|
- `//spop`: Fix wording in displayed message
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@ worldedit.register_command("airapply", {
|
||||||
cmd.func(name, worldeditadditions.table.unpack(args_parsed))
|
cmd.func(name, worldeditadditions.table.unpack(args_parsed))
|
||||||
end, args_parsed
|
end, args_parsed
|
||||||
)
|
)
|
||||||
|
if not success then return success, stats_time end
|
||||||
|
|
||||||
|
|
||||||
local time_overhead = 100 - worldeditadditions.round((stats_time.fn / stats_time.all) * 100, 3)
|
local time_overhead = 100 - worldeditadditions.round((stats_time.fn / stats_time.all) * 100, 3)
|
||||||
|
|
Loading…
Reference in a new issue