MikaylaFischler / cc-mek-scada

Configurable ComputerCraft SCADA system for multi-reactor control of Mekanism fission reactors with a GUI, automatic safety features, waste processing control, and more! Please be sure to take a look at the Wiki tab, this project has lots of docs!
https://www.youtube.com/@cc-mek-scada
MIT License
336 stars 14 forks source link

Use `os.clock()` Instead of Unix Time for Connection Timeout #433

Closed MikaylaFischler closed 7 months ago

MikaylaFischler commented 7 months ago

If a server or single player game starts up on a slower host, the os.clock() time can elapse much slower than os.epoch("local"). It would make sense to use os.clock() for the connection logic, since this initial connection is dependent on how fast all the computers run and when chunks load.