Fix time locking

This commit is contained in:
KingRainbow44
2023-05-08 02:24:05 -04:00
parent b5c80764de
commit 0b2e471f9b
2 changed files with 2 additions and 2 deletions

View File

@@ -422,7 +422,7 @@ public final class World implements Iterable<Player> {
}
// store updated world time every 60 seconds. (in-game hour)
if (this.tickCount % 60 == 0) {
if (this.tickCount % 60 == 0 && !this.timeLocked) {
this.getHost().updatePlayerGameTime(this.currentWorldTime);
}