diff options
author | ShadowNinja <shadowninja@minetest.net> | 2013-12-23 15:18:38 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2013-12-23 16:38:05 -0500 |
commit | 2df417feb75cf54fdf631d72baa9fa529dda14db (patch) | |
tree | b8556a2e05000d41b773a606e4b294f603fa28b0 | |
parent | 018b248d5184ea80d43181b2d98ba096d58af624 (diff) |
Localize generator fuel
-rw-r--r-- | technic/machines/register/generator.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/technic/machines/register/generator.lua b/technic/machines/register/generator.lua index 3f2f118..d253323 100644 --- a/technic/machines/register/generator.lua +++ b/technic/machines/register/generator.lua @@ -96,7 +96,9 @@ function technic.register_generator(data) local inv = meta:get_inventory() if not inv:is_empty("src") then local fuellist = inv:get_list("src") - fuel = minetest.get_craft_result({method = "fuel", width = 1, items = fuellist}) + local fuel = minetest.get_craft_result( + {method = "fuel", width = 1, + items = fuellist}) 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") |