Skip to content

Commit 4799068

Browse files
committedDec 29, 2014
Merge pull request #68 from KodexKy/stack2_fix
Fix stack2 param
2 parents e4d0071 + 5b03c83 commit 4799068

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎worldedit/manipulations.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ worldedit.stack2 = function(pos1, pos2, direction, amount, finished)
286286
local i = 0
287287
local translated = {x=0,y=0,z=0}
288288
local function nextone()
289-
if i <= amount then
289+
if i < amount then
290290
i = i + 1
291291
translated.x = translated.x + direction.x
292292
translated.y = translated.y + direction.y

‎worldedit_commands/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ minetest.register_chatcommand("/stack2", {
641641
end
642642
repetitions = tonumber(repetitions)
643643

644-
local x, y, z = incs:match("([+-]?%d+) ([+-]%d+) ([+-]%d+)")
644+
local x, y, z = incs:match("([+-]?%d+) ([+-]?%d+) ([+-]?%d+)")
645645
if x == nil then
646646
worldedit.player_notify(name, "invalid increments: " .. param)
647647
return

0 commit comments

Comments
 (0)
Please sign in to comment.