Fix #57 (thanks Zeno-!).

This commit is contained in:
Uberi 2014-08-15 19:23:23 -04:00
parent 18efe50e1e
commit 70c24c9501
1 changed files with 1 additions and 0 deletions

View File

@ -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