mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-26 10:50:33 +01:00
Localize generator fuel
This commit is contained in:
parent
018b248d51
commit
2df417feb7
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user