From a84de22d0717788321389c571fed3844ae8da2f3 Mon Sep 17 00:00:00 2001 From: ThatGraemeGuy Date: Tue, 16 Sep 2014 21:03:35 +0200 Subject: [PATCH] Generators must stop supplying when fuel runs out but non-fuel items exist in the fuel slot --- technic/machines/register/generator.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/technic/machines/register/generator.lua b/technic/machines/register/generator.lua index 64f75be..c065de9 100644 --- a/technic/machines/register/generator.lua +++ b/technic/machines/register/generator.lua @@ -59,6 +59,7 @@ function technic.register_generator(data) if not fuel or fuel.time == 0 then meta:set_string("infotext", S("%s Out Of Fuel"):format(desc)) technic.swap_node(pos, "technic:"..ltier.."_generator") + meta:set_int(tier.."_EU_supply", 0) return end meta:set_int("burn_time", fuel.time)