Use proper furnace cook time
authorPerttu Ahola <celeron55@gmail.com>
Sat, 2 Jun 2012 12:54:42 +0000 (15:54 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sun, 3 Jun 2012 19:31:01 +0000 (22:31 +0300)
games/minimal/mods/default/init.lua

index 12d4eb37bd7d1e58bf875300957574ae7fe09b8a..b117befbdbf07843fccef8033d9ca4cd3ab8bb08 100644 (file)
@@ -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