From 6123493fd73a9c70210eb89274b5690caf562823 Mon Sep 17 00:00:00 2001 From: RealBadAngel <mk@realbadangel.pl> Date: Sun, 03 Feb 2013 19:28:51 +0100 Subject: [PATCH] Added API functions to register LV and MV machines --- technic/electric_furnace.lua | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/technic/electric_furnace.lua b/technic/electric_furnace.lua index 22e053b..e9d3236 100644 --- a/technic/electric_furnace.lua +++ b/technic/electric_furnace.lua @@ -145,12 +145,10 @@ end meta:set_string("src_time", 0) end - end + end end - - - + if srclist then cooked = minetest.get_craft_result({method = "cooking", width = 1, items = srclist}) if cooked.time>0 then @@ -162,12 +160,14 @@ end end - + hacky_swap_node(pos,"technic:electric_furnace") meta:set_string("infotext","Furnace inactive") meta:set_string("furnace_is_cookin",0) meta:set_string("src_time", 0) - - -end, + +end, }) + +register_LV_machine ("technic:electric_furnace","RE") +register_LV_machine ("technic:electric_furnace_active","RE") -- Gitblit v1.8.0