mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-02-03 22:52:56 +08:00
Fix time locking
This commit is contained in:
parent
b5c80764de
commit
0b2e471f9b
@ -17,7 +17,7 @@ public enum QuestExec implements QuestTrigger {
|
|||||||
QUEST_EXEC_REFRESH_GROUP_MONSTER(7),
|
QUEST_EXEC_REFRESH_GROUP_MONSTER(7),
|
||||||
QUEST_EXEC_SET_IS_FLYABLE(8),
|
QUEST_EXEC_SET_IS_FLYABLE(8),
|
||||||
QUEST_EXEC_SET_IS_WEATHER_LOCKED(9), // missing
|
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_SET_IS_TRANSFERABLE(11), // missing, currently unused
|
||||||
QUEST_EXEC_GRANT_TRIAL_AVATAR(12),
|
QUEST_EXEC_GRANT_TRIAL_AVATAR(12),
|
||||||
QUEST_EXEC_OPEN_BORED(13), // missing, currently unused
|
QUEST_EXEC_OPEN_BORED(13), // missing, currently unused
|
||||||
|
@ -422,7 +422,7 @@ public final class World implements Iterable<Player> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// store updated world time every 60 seconds. (in-game hour)
|
// 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);
|
this.getHost().updatePlayerGameTime(this.currentWorldTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user