1
0
mirror of https://github.com/HybridDog/nether-pack.git synced 2024-12-26 18:50:24 +01:00
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 emerged_pos1, emerged_pos2 = manip:read_from_map(min, max)
local area = VoxelArea:new({MinEdge=emerged_pos1, MaxEdge=emerged_pos2}) local area = VoxelArea:new({MinEdge=emerged_pos1, MaxEdge=emerged_pos2})
local nodes = manip:get_data() local nodes = manip:get_data()
local param2s = manip:get_param2_data() local param2s = manip:get_param2_data()
for _,p in pairs(leaf_ps) do for _,p in pairs(leaf_ps) do
p = area:indexp(p) p = area:indexp(p)

View File

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

View File

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