From 36979ebffd0d751ab0070d990415b8cc67aee990 Mon Sep 17 00:00:00 2001 From: Jordan Snelling Date: Thu, 8 Nov 2012 19:18:46 +0000 Subject: [PATCH] fully fix the nuclear reactors reactors only work with mv wire and battery boxes todo: add textures and real craft recipe upon c55's knowledge, best not let darkrose use one --- battery_box.lua | 2 -- battery_box_mv.lua | 4 +++- nuclear_reactor.lua | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/battery_box.lua b/battery_box.lua index 1da588b..3198006 100644 --- a/battery_box.lua +++ b/battery_box.lua @@ -394,7 +394,5 @@ if minetest.env:get_node(pos1).name == "technic:alloy_furnace_active" then new_ if minetest.env:get_node(pos1).name == "technic:tool_workshop" then new_node_added=add_new_cable_node(RE_nodes,pos1) end if minetest.env:get_node(pos1).name == "technic:music_player" then new_node_added=add_new_cable_node(RE_nodes,pos1) end if minetest.env:get_node(pos1).name == "technic:grinder" then new_node_added=add_new_cable_node(RE_nodes,pos1) end -if minetest.env:get_node(pos1).name == "technic:reactor" then new_node_added=add_new_cable_node(RE_nodes,pos1) end -if minetest.env:get_node(pos1).name == "technic:reactor_active" then new_node_added=add_new_cable_node(RE_nodes,pos1) end end \ No newline at end of file diff --git a/battery_box_mv.lua b/battery_box_mv.lua index 053dba9..c07b889 100644 --- a/battery_box_mv.lua +++ b/battery_box_mv.lua @@ -207,7 +207,7 @@ minetest.register_abm({ MV_nodes[1].z=pos1.z MV_nodes[1].visited=false - print(dump(PR_nodes)) + table_index=1 repeat check_MV_node (PR_nodes,RE_nodes,MV_nodes,table_index) @@ -318,5 +318,7 @@ function check_MV_node_subp (PR_nodes,RE_nodes,MV_nodes,pos1) meta = minetest.env:get_meta(pos1) if meta:get_float("mv_cablelike")==1 then new_node_added=add_new_MVcable_node(MV_nodes,pos1) end if minetest.env:get_node(pos1).name == "technic:solar_panel_mv" then new_node_added=add_new_MVcable_node(PR_nodes,pos1) end +if minetest.env:get_node(pos1).name == "technic:reactor_active" then new_node_added=add_new_MVcable_node(PR_nodes,pos1) end +if minetest.env:get_node(pos1).name == "technic:reactor" then new_node_added=add_new_MVcable_node(PR_nodes,pos1) end end \ No newline at end of file diff --git a/nuclear_reactor.lua b/nuclear_reactor.lua index 36d2a77..a971a3d 100644 --- a/nuclear_reactor.lua +++ b/nuclear_reactor.lua @@ -95,7 +95,7 @@ minetest.register_abm({ local burn_time= meta:get_float("burn_time") local charge= meta:get_float("internal_EU_buffer") local max_charge= meta:get_float("internal_EU_buffer_size") - local burn_charge=200 + local burn_charge=2000 if burn_time>0 then if charge+burn_charge>max_charge then