1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-25 18:20:38 +01:00

Fix #57 (thanks Zeno-!).

This commit is contained in:
Uberi 2014-08-15 19:23:23 -04:00
parent 18efe50e1e
commit 70c24c9501

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