1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-26 15:13:21 +00:00

Fix os.time() and os.day() behavior

This commit is contained in:
parly 2019-08-19 23:04:57 +09:00
parent f1d6d21d6d
commit 1e7f1c98fc

View File

@ -311,13 +311,13 @@ public void setLabel( String label )
@Override
public double getTimeOfDay()
{
return (m_world.getGameTime() + 6000) % 24000 / 1000.0;
return (m_world.getDayTime() + 6000) % 24000 / 1000.0;
}
@Override
public int getDay()
{
return (int) ((m_world.getGameTime() + 6000) / 24000) + 1;
return (int) ((m_world.getDayTime() + 6000) / 24000) + 1;
}
@Override