forked from mtcontrib/Minetest-WorldEdit
Fix #57 (thanks Zeno-!).
This commit is contained in:
parent
18efe50e1e
commit
70c24c9501
@ -616,6 +616,7 @@ minetest.register_chatcommand("/stack", {
|
|||||||
local found, _, axis, repetitions = param:find("^([xyz%?])%s+([+-]?%d+)$")
|
local found, _, axis, repetitions = param:find("^([xyz%?])%s+([+-]?%d+)$")
|
||||||
if found == nil then
|
if found == nil then
|
||||||
worldedit.player_notify(name, "invalid usage: " .. param)
|
worldedit.player_notify(name, "invalid usage: " .. param)
|
||||||
|
return
|
||||||
end
|
end
|
||||||
local count = check_region(name, param)
|
local count = check_region(name, param)
|
||||||
if count then return (tonumber(repetitions) + 1) * count end
|
if count then return (tonumber(repetitions) + 1) * count end
|
||||||
|
Loading…
Reference in New Issue
Block a user