changed nshd to run luash in nshd_w()

This commit is contained in:
Izaya 2017-06-19 13:19:29 +00:00
parent 0475903e9c
commit 6c5a2dce4c

View File

@ -1,5 +1,6 @@
function nshd_w(evPP,cA,sI)
s("nshd - "..tostring(sI),function()
luash({["sI"]=sI})
while true do
if ev[1] == "net_msg" then
local msg=tostring(ev[4])
@ -27,7 +28,6 @@ function nshd(P)
Cc=Cc+1
ns(ev[2],P,nnID)
nshd_w(nnID,ev[2],nnID)
luash({["sI"]=nnID})
print("[nshd]Spawned "..nnID.." for "..tostring(ev[2]))
end
end