Skip to content
Permalink
Browse files

Merge pull request #68 from KodexKy/stack2_fix

Fix stack2 param
  • Loading branch information
Uberi committed Dec 29, 2014
2 parents e4d0071 + 5b03c83 commit 47990685514ebdfe114977c33e08c20511f1f0a7
Showing with 2 additions and 2 deletions.
  1. +1 −1 worldedit/manipulations.lua
  2. +1 −1 worldedit_commands/init.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
@@ -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

0 comments on commit 4799068

Please sign in to comment.
You can’t perform that action at this time.