From 462570f2eb3b838f910ef56f405ca7beb1d424e6 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 28 Dec 2021 01:26:53 +0000 Subject: [PATCH] //bonemeal: bugfix argument parsing --- CHANGELOG.md | 1 + worldeditadditions_commands/commands/bonemeal.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1413700..80f1deb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -35,6 +35,7 @@ Note to self: See the bottom of this file for the release template text. - `//replacemix`: Improve error handling to avoid crashes (thanks, Jonathon for reporting via Discord!) - Cloud wand: Improve chat message text - Fix `bonemeal` mod detection to look for the global `bonemeal`, not whether the `bonemeal` mod name has been loaded + - `//bonemeal`: Fix argument parsing - `//walls`: Prevent crash if not parameters are specified by defaulting to `dirt` as the replace_node - `//maze`, `//maze3d`: - Fix generated maze not reaching the very edge of the defined region diff --git a/worldeditadditions_commands/commands/bonemeal.lua b/worldeditadditions_commands/commands/bonemeal.lua index 651aaab..cc4ba90 100644 --- a/worldeditadditions_commands/commands/bonemeal.lua +++ b/worldeditadditions_commands/commands/bonemeal.lua @@ -27,7 +27,7 @@ worldedit.register_command("bonemeal", { return false, "Invalid strength value (value must be an integer)" end end - if #parts >= 2 then + if #parts >= 1 then chance = worldeditadditions.parse.chance(table.remove(parts, 1)) if not chance then return false, "Invalid chance value (must be a positive integer)"