//bonemeal: bugfix argument parsing

This commit is contained in:
Starbeamrainbowlabs 2021-12-28 01:26:53 +00:00
parent 58d3c1e43b
commit 462570f2eb
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2
2 changed files with 2 additions and 1 deletions

@ -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

@ -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)"