From: Perttu Ahola Date: Sat, 2 Jun 2012 12:54:42 +0000 (+0300) Subject: Use proper furnace cook time X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=9c3830dd35e7fdf601d83fcd969b67dd3fe189d3;p=zefram%2Fminetest%2Fminetest_engine.git Use proper furnace cook time --- diff --git a/games/minimal/mods/default/init.lua b/games/minimal/mods/default/init.lua index 12d4eb37..b117befb 100644 --- a/games/minimal/mods/default/init.lua +++ b/games/minimal/mods/default/init.lua @@ -1341,7 +1341,7 @@ minetest.register_abm({ was_active = true meta:set_float("fuel_time", meta:get_float("fuel_time") + 1) meta:set_float("src_time", meta:get_float("src_time") + 1) - if cooked and cooked.item and meta:get_float("src_time") >= 3 then + if cooked and cooked.item and meta:get_float("src_time") >= cooked.time then -- check if there's room for output in "dst" list if inv:room_for_item("dst",cooked.item) then -- Put result in "dst" list