Localize generator fuel
authorShadowNinja <shadowninja@minetest.net>
Mon, 23 Dec 2013 20:18:38 +0000 (15:18 -0500)
committerShadowNinja <shadowninja@minetest.net>
Mon, 23 Dec 2013 21:38:05 +0000 (16:38 -0500)
technic/machines/register/generator.lua

index 3f2f118782370bcde08fb7181f590382aacd4c98..d253323e228113292918d8cb0285559f14d292c8 100644 (file)
@@ -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")