comparator read voltage from opaque blockse

This commit is contained in:
Henry Behrendt 2021-08-22 22:30:13 +02:00
parent fa760f4704
commit a061fbf611
1 changed files with 3 additions and 1 deletions

View File

@ -178,7 +178,9 @@ local function comparator_desired_on(pos, node)
local voltage = 0
if back_rule then
local back_pos = vector.add(pos, back_rule)
local _, vo_back = mesecon.is_power_on(back_pos)
--local _, vo_back = mesecon.is_power_on(back_pos)
local _, _, vo_back = mesecon.is_powered(back_pos)
local vo_coin = container_inventory_nonempty(back_pos)