mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-26 10:50:33 +01:00
Fix supply converter again
This commit is contained in:
parent
7065ba9155
commit
efd5ff644c
@ -35,7 +35,12 @@ local run = function(pos, node)
|
|||||||
..input * remain.." "..to..")")
|
..input * remain.." "..to..")")
|
||||||
else
|
else
|
||||||
meta:set_string("infotext", S("%s Has Bad Cabling"):format(machine_name))
|
meta:set_string("infotext", S("%s Has Bad Cabling"):format(machine_name))
|
||||||
meta:set_int(to.."_EU_supply", 0)
|
if to then
|
||||||
|
meta:set_int(to.."_EU_supply", 0)
|
||||||
|
end
|
||||||
|
if from then
|
||||||
|
meta:set_int(from.."_EU_demand", 0)
|
||||||
|
end
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user