Make generators stop supplying EUs when there is a non-fuel item in the fuel slot
This commit is contained in:
parent
0defb2e66d
commit
6d90ebb94e
@ -59,6 +59,7 @@ function technic.register_generator(data)
|
|||||||
if not fuel or fuel.time == 0 then
|
if not fuel or fuel.time == 0 then
|
||||||
meta:set_string("infotext", S("%s Out Of Fuel"):format(desc))
|
meta:set_string("infotext", S("%s Out Of Fuel"):format(desc))
|
||||||
technic.swap_node(pos, "technic:"..ltier.."_generator")
|
technic.swap_node(pos, "technic:"..ltier.."_generator")
|
||||||
|
meta:set_int(tier.."_EU_supply", 0)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
meta:set_int("burn_time", fuel.time)
|
meta:set_int("burn_time", fuel.time)
|
||||||
|
Loading…
Reference in New Issue
Block a user