diff options
author | Uberi <azhang9@gmail.com> | 2014-08-15 19:23:23 -0400 |
---|---|---|
committer | Uberi <azhang9@gmail.com> | 2014-08-15 19:23:23 -0400 |
commit | 70c24c9501c691d85bbe267ee79547fb490e6c00 (patch) | |
tree | afa3e6d506d70a352f9606919be2adc68f59ef1e /worldedit_commands/init.lua | |
parent | 18efe50e1ea4ea5bb72ab2376cbae952049289ee (diff) |
Fix #57 (thanks Zeno-!).
Diffstat (limited to 'worldedit_commands/init.lua')
-rw-r--r-- | worldedit_commands/init.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua index 3613cfa..7d347c9 100644 --- a/worldedit_commands/init.lua +++ b/worldedit_commands/init.lua @@ -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
|