mirror of
https://github.com/Anime-Game-Servers/Grasscutter-Quests.git
synced 2024-11-27 06:20:37 +00:00
Merge pull request #102 from scooterboo/patch-3
Handle concurrent saving error
This commit is contained in:
commit
d2bea1b264
@ -314,7 +314,11 @@ public final class DatabaseHelper {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void saveQuest(GameMainQuest quest) {
|
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) {
|
public static boolean deleteQuest(GameMainQuest quest) {
|
||||||
|
Loading…
Reference in New Issue
Block a user