mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-08-29 08:42:17 +00:00
parent
48b1b2f01d
commit
6cae8e211e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user