1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-05-05 17:04:14 +00:00

Fix overflow in os.epoch

Closes #611
This commit is contained in:
Jonathan Coates 2020-12-23 12:33:47 +00:00
parent 663859d2e5
commit abf425dfb5

View File

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