fixed some stuff

This commit is contained in:
kamirama 2017-08-20 14:43:51 +02:00
parent 6d82ece2ed
commit 235cd5fa68

View File

@ -25,13 +25,11 @@ local function net_build(pos, master,callerpos)
if (net_trigger == 1 and master == nil) then
master = pos;
end -- if no master is set the code will just run around checking for one, if it doesnt find one well, doesnt matter, its just cables then
if (master ~= nil) then -- we have a master, so we can store stuff in it :D
if (net_trigger) then -- the node is a trigger, so we store their stuff in the master node
if (pos ~= master) then -- at this point it could be the master if we set it above
add_node_to_net(pos, master) -- we set all relevant data for this node, lets continue there
local function net_build(nodepos, master,pos)
end
end
if (master ~= nil and net_trigger == 1 and pos ~= master) then -- we have a master, so we can store stuff in it :D
-- the node is a trigger, so we store their stuff in the master node
-- at this point it could be the master if we set it above
add_node_to_net(pos, master) -- we set all relevant data for this node, lets continue there
net_build(nodepos, master,pos)
end
end
return -- at this point all nodes have been processed, so we can return to the calling node
@ -51,7 +49,6 @@ end
local function net_get_slaves(master)
end
local function net_distribute(pos)