summaryrefslogtreecommitdiff
path: root/worldedit_commands/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'worldedit_commands/init.lua')
-rw-r--r--worldedit_commands/init.lua1
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