mirror of
https://github.com/Anime-Game-Servers/Grasscutter-Quests.git
synced 2024-11-23 04:29:42 +00:00
Handle concurrent saving error
This commit is contained in:
parent
4e8f709ec2
commit
6bfc4aef58
@ -314,7 +314,11 @@ public final class DatabaseHelper {
|
||||
}
|
||||
|
||||
public static void saveQuest(GameMainQuest quest) {
|
||||
DatabaseManager.getGameDatastore().save(quest);
|
||||
try {
|
||||
DatabaseManager.getGameDatastore().save(quest);
|
||||
} catch(Exception exception){
|
||||
Grasscutter.getLogger().error("Failed to save quest m{}",quest.getParentQuestId(), exception);
|
||||
}
|
||||
}
|
||||
|
||||
public static boolean deleteQuest(GameMainQuest quest) {
|
||||
|
Loading…
Reference in New Issue
Block a user