forked from VoxeLibre/VoxeLibre
Fixed kelp waterlogged node group checking
This commit is contained in:
parent
744b47088b
commit
ad5c95ed06
|
@ -268,7 +268,7 @@ function kelp.next_height(pos, node, pos_tip, node_tip, submerged, downward_flow
|
||||||
if downward_flowing then
|
if downward_flowing then
|
||||||
local alt_liq = mt_registered_nodes[node_tip.name].liquid_alternative_source
|
local alt_liq = mt_registered_nodes[node_tip.name].liquid_alternative_source
|
||||||
local alt_liq_accessible = mt_get_item_group(node_tip.name,"waterlogged") -- returns 0 if it isn't waterlogged.
|
local alt_liq_accessible = mt_get_item_group(node_tip.name,"waterlogged") -- returns 0 if it isn't waterlogged.
|
||||||
if alt_liq and not alt_liq_accessible then
|
if alt_liq and (alt_liq_accessible or 0) == 0 then
|
||||||
mt_set_node(pos_tip, {name=alt_liq})
|
mt_set_node(pos_tip, {name=alt_liq})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue