This commit is contained in:
HybridDog 2015-05-29 12:08:27 +02:00
parent de4b04f35b
commit b09a30c141
3 changed files with 8 additions and 8 deletions

View File

@ -859,7 +859,7 @@ function nether.grow_tree(pos, generated)
local emerged_pos1, emerged_pos2 = manip:read_from_map(min, max)
local area = VoxelArea:new({MinEdge=emerged_pos1, MaxEdge=emerged_pos2})
local nodes = manip:get_data()
local param2s = manip:get_param2_data()
local param2s = manip:get_param2_data()
for _,p in pairs(leaf_ps) do
p = area:indexp(p)

View File

@ -416,7 +416,7 @@ minetest.register_node("nether:vine", {
minetest.node_dig(p, nn, digger)
end
end
end
end
})

View File

@ -301,14 +301,14 @@ local function check_portal(p1, p2)
else
return false
end
if not move_check(p1, p2.y, "y") then
return false
end
if not move_check(p2, p1.y, "y") then
return false
end
return true
end
@ -339,7 +339,7 @@ local function make_portal(pos)
print("[nether] aborted, obsidian portals can't be used to get out")
return
end
for d=1,2 do
for y=p1.y+1,p2.y-1 do
local p
@ -353,18 +353,18 @@ local function make_portal(pos)
end
end
end
local param2
if p1.z == p2.z then
param2 = 0
else
param2 = 1
end
local target = {x=p1.x, y=p1.y, z=p1.z}
target.x = target.x + 1
target.y = portal_target + math.random(4)
for d=0,3 do
for y=p1.y,p2.y do
local p = {}