From 718a5beda197cd0a775fd41aedfb5b1bbd5d1d8b Mon Sep 17 00:00:00 2001 From: ZettaScript <contact@zettascript.org> Date: Thu, 20 Oct 2022 17:56:10 +0200 Subject: [PATCH] Supply converter: demany only the needed power (#577) --- technic/machines/other/coal_alloy_furnace.lua | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/technic/machines/other/coal_alloy_furnace.lua b/technic/machines/other/coal_alloy_furnace.lua index 58af679..c2de151 100644 --- a/technic/machines/other/coal_alloy_furnace.lua +++ b/technic/machines/other/coal_alloy_furnace.lua @@ -70,20 +70,19 @@ }) minetest.register_abm({ + label = "Machines: run coal alloy furnace", nodenames = {"technic:coal_alloy_furnace", "technic:coal_alloy_furnace_active"}, interval = 1, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) local meta = minetest.get_meta(pos) local inv = meta:get_inventory() - + if inv:get_size("src") == 1 then -- Old furnace -> convert it inv:set_size("src", 2) inv:set_stack("src", 2, inv:get_stack("src2", 1)) inv:set_size("src2", 0) end - - local recipe = nil for i, name in pairs({ "fuel_totaltime", -- Gitblit v1.8.0