forked from mtcontrib/homedecor_modpack
Merge pull request #18 from ssieb/furnace
Stop the ovens when the output bins are full
This commit is contained in:
commit
20787ffe8a
@ -285,6 +285,13 @@ minetest.register_abm({
|
||||
return
|
||||
end
|
||||
|
||||
if inv:room_for_item("dst",cooked.item) then
|
||||
meta:set_string("infotext", S("Oven output bins are full"))
|
||||
hacky_swap_node(pos, "homedecor:microwave_oven")
|
||||
meta:set_string("formspec", mw_oven_inactive_formspec)
|
||||
return
|
||||
end
|
||||
|
||||
meta:set_string("fuel_totaltime", fuel.time)
|
||||
meta:set_string("fuel_time", 0)
|
||||
|
||||
|
7
oven.lua
7
oven.lua
@ -261,6 +261,13 @@ minetest.register_abm({
|
||||
return
|
||||
end
|
||||
|
||||
if inv:room_for_item("dst",cooked.item) then
|
||||
meta:set_string("infotext", S("Oven output bins are full"))
|
||||
hacky_swap_node(pos, "homedecor:oven")
|
||||
meta:set_string("formspec", oven_inactive_formspec)
|
||||
return
|
||||
end
|
||||
|
||||
meta:set_string("fuel_totaltime", fuel.time)
|
||||
meta:set_string("fuel_time", 0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user