mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-24 14:42:24 +01:00
//bonemeal: bugfix argument parsing
This commit is contained in:
parent
58d3c1e43b
commit
462570f2eb
@ -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)"
|
||||
|
Loading…
Reference in New Issue
Block a user