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
This commit is contained in:
Jordan Snelling
2012-11-08 19:18:46 +00:00
parent 1226002ed6
commit 36979ebffd
3 changed files with 4 additions and 4 deletions

View File

@ -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