mirror of
https://github.com/mt-mods/plantlife_modpack.git
synced 2024-11-10 12:20:24 +01:00
Removing attached_node from vine groups, as it was causing breaking one vine to break the vine all the way up to the top, instantly
This commit is contained in:
parent
ba98359dd0
commit
63914caed1
|
@ -56,7 +56,7 @@ end
|
||||||
|
|
||||||
vines.register_vine = function( name, defs, biome )
|
vines.register_vine = function( name, defs, biome )
|
||||||
|
|
||||||
local groups = {vines = 1, snappy = 3, flammable = 2, attached_node = 1}
|
local groups = {vines = 1, snappy = 3, flammable = 2}
|
||||||
local vine_name_end = 'vines:' .. name .. '_end'
|
local vine_name_end = 'vines:' .. name .. '_end'
|
||||||
local vine_name_middle = 'vines:' .. name .. '_middle'
|
local vine_name_middle = 'vines:' .. name .. '_middle'
|
||||||
local vine_image_end = "vines_" .. name .. "_end.png"
|
local vine_image_end = "vines_" .. name .. "_end.png"
|
||||||
|
@ -111,7 +111,6 @@ vines.register_vine = function( name, defs, biome )
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
|
|
||||||
local timer = minetest.get_node_timer(pos)
|
local timer = minetest.get_node_timer(pos)
|
||||||
|
|
||||||
timer:start(math.random(5, 10))
|
timer:start(math.random(5, 10))
|
||||||
end,
|
end,
|
||||||
|
|
||||||
|
@ -120,7 +119,6 @@ vines.register_vine = function( name, defs, biome )
|
||||||
local node = minetest.get_node(pos)
|
local node = minetest.get_node(pos)
|
||||||
local bottom = {x = pos.x, y = pos.y - 1, z = pos.z}
|
local bottom = {x = pos.x, y = pos.y - 1, z = pos.z}
|
||||||
local bottom_node = minetest.get_node( bottom )
|
local bottom_node = minetest.get_node( bottom )
|
||||||
|
|
||||||
if bottom_node.name == "air" then
|
if bottom_node.name == "air" then
|
||||||
|
|
||||||
if not math.random(defs.average_length) == 1 then
|
if not math.random(defs.average_length) == 1 then
|
||||||
|
|
Loading…
Reference in New Issue
Block a user