1
0
mirror of https://github.com/Uberi/Minetest-WorldEdit.git synced 2024-12-26 02:30:40 +01:00

Merge pull request #68 from KodexKy/stack2_fix

Fix stack2 param
This commit is contained in:
Anthony Zhang 2014-12-29 17:51:51 -05:00
commit 4799068551
2 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ worldedit.stack2 = function(pos1, pos2, direction, amount, finished)
local i = 0 local i = 0
local translated = {x=0,y=0,z=0} local translated = {x=0,y=0,z=0}
local function nextone() local function nextone()
if i <= amount then if i < amount then
i = i + 1 i = i + 1
translated.x = translated.x + direction.x translated.x = translated.x + direction.x
translated.y = translated.y + direction.y translated.y = translated.y + direction.y

View File

@ -641,7 +641,7 @@ minetest.register_chatcommand("/stack2", {
end end
repetitions = tonumber(repetitions) 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 if x == nil then
worldedit.player_notify(name, "invalid increments: " .. param) worldedit.player_notify(name, "invalid increments: " .. param)
return return