mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-12 15:54:52 +09:00
Added offset for on tick to hopefuly reduce desyncs
This commit is contained in:
1 parent
cc297356be
commit
8c209338b5
3 files changed
+3
-2
No files matched your search
@@ -374,6 +374,7 @@ function Server._thread:on_event(event,callback)
|
||||
end
|
||||
|
||||
Event.register(defines.events.on_tick,function(event)
|
||||
if event.tick < 10 then return end
|
||||
local threads = Server._threads()
|
||||
if #threads.tick > 0 then Server.run_tick_threads() end
|
||||
if #threads.timeout > 0 then Server.check_timeouts() end
|
||||
|
||||
Reference in new issue
Block a user