mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-11-13 22:00:37 +01:00
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
|
return
|
||||||
end
|
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_totaltime", fuel.time)
|
||||||
meta:set_string("fuel_time", 0)
|
meta:set_string("fuel_time", 0)
|
||||||
|
|
||||||
|
|
7
oven.lua
7
oven.lua
|
@ -261,6 +261,13 @@ minetest.register_abm({
|
||||||
return
|
return
|
||||||
end
|
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_totaltime", fuel.time)
|
||||||
meta:set_string("fuel_time", 0)
|
meta:set_string("fuel_time", 0)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user