Remove check with mcl_core.check_vines_supported for twisted and crimson vines
This commit is contained in:
parent
e3bf49d7d7
commit
b8d4fad7a1
|
@ -199,7 +199,7 @@ minetest.register_node("mcl_crimson:twisting_vines", {
|
||||||
local above = vector.offset(pos,0,1,0)
|
local above = vector.offset(pos,0,1,0)
|
||||||
local abovenode = minetest.get_node(above)
|
local abovenode = minetest.get_node(above)
|
||||||
minetest.node_dig(pos, node, digger)
|
minetest.node_dig(pos, node, digger)
|
||||||
if abovenode.name == node.name and (not mcl_core.check_vines_supported(above, abovenode)) then
|
if abovenode.name == node.name then
|
||||||
minetest.registered_nodes[node.name].on_dig(above, node, digger)
|
minetest.registered_nodes[node.name].on_dig(above, node, digger)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
@ -294,7 +294,7 @@ minetest.register_node("mcl_crimson:weeping_vines", {
|
||||||
local below = vector.offset(pos,0,-1,0)
|
local below = vector.offset(pos,0,-1,0)
|
||||||
local belownode = minetest.get_node(below)
|
local belownode = minetest.get_node(below)
|
||||||
minetest.node_dig(pos, node, digger)
|
minetest.node_dig(pos, node, digger)
|
||||||
if belownode.name == node.name and (not mcl_core.check_vines_supported(below, belownode)) then
|
if belownode.name == node.name then
|
||||||
minetest.registered_nodes[node.name].on_dig(below, node, digger)
|
minetest.registered_nodes[node.name].on_dig(below, node, digger)
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue