diff options
-rw-r--r-- | worldedit/manipulations.lua | 2 | ||||
-rw-r--r-- | worldedit_commands/init.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/worldedit/manipulations.lua b/worldedit/manipulations.lua index 71eef5d..2b16c32 100644 --- a/worldedit/manipulations.lua +++ b/worldedit/manipulations.lua @@ -286,7 +286,7 @@ worldedit.stack2 = function(pos1, pos2, direction, amount, finished) local i = 0
local translated = {x=0,y=0,z=0}
local function nextone()
- if i <= amount then
+ if i < amount then
i = i + 1
translated.x = translated.x + direction.x
translated.y = translated.y + direction.y
diff --git a/worldedit_commands/init.lua b/worldedit_commands/init.lua index 93e594a..734150a 100644 --- a/worldedit_commands/init.lua +++ b/worldedit_commands/init.lua @@ -641,7 +641,7 @@ minetest.register_chatcommand("/stack2", { end
repetitions = tonumber(repetitions)
- local x, y, z = incs:match("([+-]?%d+) ([+-]%d+) ([+-]%d+)")
+ local x, y, z = incs:match("([+-]?%d+) ([+-]?%d+) ([+-]?%d+)")
if x == nil then
worldedit.player_notify(name, "invalid increments: " .. param)
return
|