1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-08-29 08:42:17 +00:00

Update ServerComputer.java

Fix os.time and os.day

(Merged from #4)
This commit is contained in:
doomy64 2019-08-17 12:05:10 -05:00 committed by parly
parent 48b1b2f01d
commit 6cae8e211e

View File

@ -314,13 +314,13 @@ public class ServerComputer extends ServerTerminal implements IComputer, IComput
@Override
public double getTimeOfDay()
{
return (m_world.getTime() + 6000) % 24000 / 1000.0;
return (m_world.getTimeOfDay() + 6000) % 24000 / 1000.0;
}
@Override
public int getDay()
{
return (int) ((m_world.getTime() + 6000) / 24000) + 1;
return (int) ((m_world.getTimeOfDay() + 6000) / 24000) + 1;
}
@Override