From ff5ae7089fc0b671b92cd7c5ec39a9a14f67bdc8 Mon Sep 17 00:00:00 2001 From: pagliaccio Date: Mon, 8 Jul 2013 17:48:54 +0200 Subject: [PATCH] bugfix HV battery box --- technic/battery_box_hv.lua | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/technic/battery_box_hv.lua b/technic/battery_box_hv.lua index 979dc13..a37ad6d 100644 --- a/technic/battery_box_hv.lua +++ b/technic/battery_box_hv.lua @@ -1,12 +1,18 @@ --- HV battery box -minetest.register_craft( - {output = 'technic:hv_battery_box 1', - recipe = { - {'technic:mv_battery_box', 'technic:mv_battery_box', 'technic:mv_battery_box'}, - {'technic:mv_battery_box', 'technic:hv_transformer', 'technic:mv_battery_box'}, - {'', 'technic:hv_cable', ''}, - } - }) +-- register MV machines here +technic.HV_machines = {} +local HV_machines = technic.HV_machines +function register_HV_machine(string1,string2) + technic.HV_machines[string1] = string2 +end + +minetest.register_craft({ + output = 'technic:hv_battery_box 1', + recipe = { + {'technic:mv_battery_box', 'technic:mv_battery_box', 'technic:mv_battery_box'}, + {'technic:mv_battery_box', 'technic:hv_transformer', 'technic:mv_battery_box'}, + {'', 'technic:hv_cable', ''}, + } + }) local battery_box_formspec = "invsize[8,9;]"..