1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-30 09:07:55 +00:00

Fix overflow in os.epoch

Closes #611
This commit is contained in:
Jonathan Coates
2020-12-23 12:33:47 +00:00
committed by Jummit
parent 20a9ff7a3f
commit 1f1b20c81e

View File

@@ -353,7 +353,7 @@ public class OSAPI implements ILuaAPI {
case "ingame":
// Get in-game epoch
synchronized (this.m_alarms) {
return this.m_day * 86400000 + (int) (this.m_time * 3600000.0f);
return this.m_day * 86400000L + (long) (this.m_time * 3600000.0);
}
default:
throw new LuaException("Unsupported operation");