Fixed kelp waterlogged node group checking

This commit is contained in:
WillConker 2024-07-01 10:00:15 +01:00
parent 744b47088b
commit ad5c95ed06
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ function kelp.next_height(pos, node, pos_tip, node_tip, submerged, downward_flow
if downward_flowing then
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.
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})
end
end