mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 16:10:18 +01:00
Fix a possible nil bug
This commit is contained in:
parent
38b068b2b2
commit
b22a188d2d
2
oven.lua
2
oven.lua
@ -245,7 +245,7 @@ minetest.register_abm({
|
||||
fuel, afterfuel = minetest.get_craft_result({method = "fuel", width = 1, items = fuellist})
|
||||
end
|
||||
|
||||
if fuel.time <= 0 then
|
||||
if (not fuel) or (fuel.time <= 0) then
|
||||
meta:set_string("infotext",S("Oven out of fuel"))
|
||||
hacky_swap_node(pos,"homedecor:oven")
|
||||
meta:set_string("formspec", oven_inactive_formspec)
|
||||
|
Loading…
Reference in New Issue
Block a user