Sponge real time ticking

This commit is contained in:
Sotr
2018-06-14 18:45:47 +08:00
parent 427a4152f3
commit dc30e8c8d5
19 changed files with 817 additions and 10 deletions

View File

@@ -285,7 +285,7 @@ public class WorldServer extends World implements IAsyncTaskHandler {
if (this.everyoneDeeplySleeping()) {
if (this.getGameRules().getBoolean("doDaylightCycle")) {
long i = this.worldData.getDayTime() + 24000L;
this.worldData.setDayTime(i - i % 24000L);
}