Fix time locking

This commit is contained in:
KingRainbow44 2023-05-08 02:24:05 -04:00
parent b5c80764de
commit 0b2e471f9b
No known key found for this signature in database
GPG Key ID: FC2CB64B00D257BE
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ public enum QuestExec implements QuestTrigger {
QUEST_EXEC_REFRESH_GROUP_MONSTER(7),
QUEST_EXEC_SET_IS_FLYABLE(8),
QUEST_EXEC_SET_IS_WEATHER_LOCKED(9), // missing
QUEST_EXEC_SET_IS_GAME_TIME_LOCKED(10), // missing
QUEST_EXEC_SET_IS_GAME_TIME_LOCKED(10),
QUEST_EXEC_SET_IS_TRANSFERABLE(11), // missing, currently unused
QUEST_EXEC_GRANT_TRIAL_AVATAR(12),
QUEST_EXEC_OPEN_BORED(13), // missing, currently unused

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);
}