forked from mtcontrib/plantlife_modpack
local-ize walldir in vines mod
This commit is contained in:
parent
f30cc04a78
commit
86abe21185
|
@ -243,7 +243,7 @@ minetest.register_abm({
|
||||||
chance = 8,
|
chance = 8,
|
||||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||||
if minetest.find_node_near(pos, 5, "group:tree") == nil then
|
if minetest.find_node_near(pos, 5, "group:tree") == nil then
|
||||||
walldir = node.param2
|
local walldir = node.param2
|
||||||
minetest.add_node(pos, {name=node.name.."_rotten", param2 = walldir})
|
minetest.add_node(pos, {name=node.name.."_rotten", param2 = walldir})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -257,7 +257,7 @@ minetest.register_abm({
|
||||||
local p = {x=pos.x, y=pos.y-1, z=pos.z}
|
local p = {x=pos.x, y=pos.y-1, z=pos.z}
|
||||||
local n = minetest.get_node(p)
|
local n = minetest.get_node(p)
|
||||||
if n.name == "air" then
|
if n.name == "air" then
|
||||||
walldir = node.param2
|
local walldir = node.param2
|
||||||
minetest.add_node(p, {name=node.name, param2 = walldir})
|
minetest.add_node(p, {name=node.name, param2 = walldir})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user