Fix outdated comment

This commit is contained in:
Elias Åström 2024-12-10 11:29:24 +01:00 committed by ryvnf
parent bc0aab84b4
commit 05d9611a9d

View File

@ -299,9 +299,11 @@ for _, mode in pairs{"comp", "sub"} do
rear_power = math.max(0, math.min(15, measure(pos2, node2, def2))) rear_power = math.max(0, math.min(15, measure(pos2, node2, def2)))
else else
rear_power = mcl_redstone.get_power(pos, back) rear_power = mcl_redstone.get_power(pos, back)
-- rear input does accept power from opaque nodes, but -- Rear input does accept power from opaque nodes, but
-- ignores it in preference of a measurable node (behind -- ignores it in preference of a measurable node (behind
-- the opaque node) unless rear power level is 15 -- the opaque node). Java edition makes an exception if
-- the power level is 15, we do not do so because we
-- mainly target bedrock.
if is_opaque then if is_opaque then
local pos3 = vector.add(pos2, back) local pos3 = vector.add(pos2, back)
local measure, _, node3, def3 = is_measurable_or_opaque(pos3) local measure, _, node3, def3 = is_measurable_or_opaque(pos3)