Added offset for on tick to hopefuly reduce desyncs

This commit is contained in:
Cooldude2606
2018-02-12 12:04:05 +00:00
parent cc297356be
commit 8c209338b5
3 changed files with 3 additions and 2 deletions

View File

@@ -157,7 +157,7 @@ function Gui.cam_link(data)
end
Event.register(defines.events.on_tick, function(event)
if (event.tick/(3600*game.speed)) % 15 == 0 then
if gui.left and ((event.tick+10)/(3600*game.speed)) % 15 == 0 then
Gui.left.update()
end
if Gui._global().cams and is_type(Gui._global().cams,'table') and #Gui._global().cams > 0 then