From c7734a2afa25c25cc1925acbcf4d96cc01ffc67b Mon Sep 17 00:00:00 2001 From: Ryan Ward Date: Fri, 15 Jun 2018 13:56:00 -0400 Subject: [PATCH] oops small thing left out --- multi/integration/networkManager.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/multi/integration/networkManager.lua b/multi/integration/networkManager.lua index 91c1a1d..fbf24ed 100644 --- a/multi/integration/networkManager.lua +++ b/multi/integration/networkManager.lua @@ -24,6 +24,7 @@ function multi:newNode(name,settings) print("Got data from the master or another node!") end) node.server:broadcast("NODE_"..name) + return node end function multi:newMaster(name,settings) -- You will be able to have more than one master connecting to a node if that is what you want to do. I want you to be able to have the freedom to code any way that you want to code. local master = {} @@ -34,6 +35,7 @@ function multi:newMaster(name,settings) -- You will be able to have more than on client:send("Hello!") end) net:newCastedClients("NODE_(.+)") -- Searches for nodes and connects to them, the master.clients table will contain them by name + return master end -- For the same reasons that the other integrations have this multi.integration.nGLOBAL=nGLOBAL