diff --git a/src/main/java/emu/grasscutter/game/world/World.java b/src/main/java/emu/grasscutter/game/world/World.java index 40bc9f9cf..53df23dde 100644 --- a/src/main/java/emu/grasscutter/game/world/World.java +++ b/src/main/java/emu/grasscutter/game/world/World.java @@ -422,7 +422,7 @@ public final class World implements Iterable { } // 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); } @@ -494,7 +494,7 @@ public final class World implements Iterable { * @param gameTime The time in game minutes. */ public void changeTime(long gameTime) { - if (!this.timeLocked) this.currentWorldTime = gameTime; + this.currentWorldTime = gameTime; // Trigger script events. this.players.forEach(