summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThatGraemeGuy <thatgraemeguy@users.noreply.github.com>2014-09-16 21:03:35 +0200
committerShadowNinja <shadowninja@minetest.net>2014-09-16 15:21:14 -0400
commit6d90ebb94e0e8f16f1baaeb5120b4f1613e9e318 (patch)
tree98d7a3d2618ebabeb9235b1b93a15132c283d9e6
parent0defb2e66d40f4058e096c9048ee09e81715069a (diff)
Make generators stop supplying EUs when there is a non-fuel item in the fuel slot
-rw-r--r--technic/machines/register/generator.lua1
1 files changed, 1 insertions, 0 deletions
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)