diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/async/async.lua (renamed from server/src/async.lua) | 5 | ||||
-rw-r--r-- | server/src/async/init.lua | 1 | ||||
-rw-r--r-- | server/src/async/proto.lua (renamed from server/src/proto.lua) | 0 | ||||
-rw-r--r-- | server/src/service.lua | 2 |
4 files changed, 5 insertions, 3 deletions
diff --git a/server/src/async.lua b/server/src/async/async.lua index 24e8b538..8c75540c 100644 --- a/server/src/async.lua +++ b/server/src/async/async.lua @@ -83,6 +83,7 @@ local function onTick() end return { - onTick = onTick, - call = call, + onTick = onTick, + call = call, + require = require, } diff --git a/server/src/async/init.lua b/server/src/async/init.lua new file mode 100644 index 00000000..3d75a720 --- /dev/null +++ b/server/src/async/init.lua @@ -0,0 +1 @@ +return require 'async.async' diff --git a/server/src/proto.lua b/server/src/async/proto.lua index 4570de2e..4570de2e 100644 --- a/server/src/proto.lua +++ b/server/src/async/proto.lua diff --git a/server/src/service.lua b/server/src/service.lua index ee299490..d0089c1b 100644 --- a/server/src/service.lua +++ b/server/src/service.lua @@ -434,7 +434,7 @@ function mt:listen() self._proto = thread.channel 'proto' - async.call([[require 'proto']]) + async.call([[require 'async.proto']]) while true do async.onTick() |