changed nshd to run luash in nshd_w()
This commit is contained in:
parent
0475903e9c
commit
6c5a2dce4c
@ -1,5 +1,6 @@
|
|||||||
function nshd_w(evPP,cA,sI)
|
function nshd_w(evPP,cA,sI)
|
||||||
s("nshd - "..tostring(sI),function()
|
s("nshd - "..tostring(sI),function()
|
||||||
|
luash({["sI"]=sI})
|
||||||
while true do
|
while true do
|
||||||
if ev[1] == "net_msg" then
|
if ev[1] == "net_msg" then
|
||||||
local msg=tostring(ev[4])
|
local msg=tostring(ev[4])
|
||||||
@ -27,7 +28,6 @@ function nshd(P)
|
|||||||
Cc=Cc+1
|
Cc=Cc+1
|
||||||
ns(ev[2],P,nnID)
|
ns(ev[2],P,nnID)
|
||||||
nshd_w(nnID,ev[2],nnID)
|
nshd_w(nnID,ev[2],nnID)
|
||||||
luash({["sI"]=nnID})
|
|
||||||
print("[nshd]Spawned "..nnID.." for "..tostring(ev[2]))
|
print("[nshd]Spawned "..nnID.." for "..tostring(ev[2]))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user