From 10a649e5979980d909ad54c6510ab114c78a4733 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 7 Aug 2021 21:16:17 +0100 Subject: [PATCH] //airapply: error handling --- CHANGELOG.md | 6 +++++- worldeditadditions_commands/commands/meta/airapply.lua | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef1802e..5cd860d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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/)) - `//bonemeal`: Add optional node list constraint - `//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 + + +### Bugfixes + - `//airapply`: Improve error handling + - `//floodfill`: Fix crash caused by internal refactoring of the `Queue` data structure - `//spop`: Fix wording in displayed message diff --git a/worldeditadditions_commands/commands/meta/airapply.lua b/worldeditadditions_commands/commands/meta/airapply.lua index 5cd3331..c5e04df 100644 --- a/worldeditadditions_commands/commands/meta/airapply.lua +++ b/worldeditadditions_commands/commands/meta/airapply.lua @@ -58,6 +58,7 @@ worldedit.register_command("airapply", { cmd.func(name, worldeditadditions.table.unpack(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)