mirror of
https://github.com/minetest-mods/technic.git
synced 2025-01-03 03:07:36 +01:00
Made the supply converter reset its supply and demand stats if the cabling is bad.
This commit is contained in:
parent
4c6546ed56
commit
85d937e199
@ -97,6 +97,15 @@ minetest.register_abm(
|
|||||||
|
|
||||||
if convert_MV_LV == 0 and convert_LV_MV == 0 and convert_HV_MV == 0 and convert_MV_HV == 0 then
|
if convert_MV_LV == 0 and convert_LV_MV == 0 and convert_HV_MV == 0 and convert_MV_HV == 0 then
|
||||||
meta:set_string("infotext", machine_name.." has bad cabling")
|
meta:set_string("infotext", machine_name.." has bad cabling")
|
||||||
|
meta:set_int("LV_EU_demand", 0)
|
||||||
|
meta:set_int("LV_EU_supply", 0)
|
||||||
|
meta:set_int("LV_EU_input", 0)
|
||||||
|
meta:set_int("MV_EU_demand", 0)
|
||||||
|
meta:set_int("MV_EU_supply", 0)
|
||||||
|
meta:set_int("MV_EU_input", 0)
|
||||||
|
meta:set_int("HV_EU_demand", 0)
|
||||||
|
meta:set_int("HV_EU_supply", 0)
|
||||||
|
meta:set_int("HV_EU_input", 0)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user