mirror of
https://github.com/Uberi/Minetest-WorldEdit.git
synced 2024-12-25 02:00:39 +01:00
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+)$")
|
||||
if found == nil then
|
||||
worldedit.player_notify(name, "invalid usage: " .. param)
|
||||
return
|
||||
end
|
||||
local count = check_region(name, param)
|
||||
if count then return (tonumber(repetitions) + 1) * count end
|
||||
|
Loading…
Reference in New Issue
Block a user