mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-12-23 03:55:01 +00:00
bonemeal: use wea.parse.chance
This commit is contained in:
parent
f9eb67b4cc
commit
ea05d5f559
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ worldedit.register_command("bonemeal", {
|
|||
end
|
||||
end
|
||||
if #parts >= 2 then
|
||||
chance = tonumber(parts[2])
|
||||
chance = worldeditadditions.parse.chance(parts[2])
|
||||
if not chance then
|
||||
return false, "Invalid chance value (must be a positive integer)"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue