Skip to content

Commit

Permalink
Fix stack2 param
Browse files Browse the repository at this point in the history
Fix stack2 amount count
Fix stack2 sign recognition for y & z
  • Loading branch information
KodexKy committed Dec 16, 2014
1 parent e4d0071 commit 5b03c83
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion worldedit/manipulations.lua
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion worldedit_commands/init.lua
Expand Up @@ -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
Expand Down

0 comments on commit 5b03c83

Please sign in to comment.