Merge pull request #102 from scooterboo/patch-3

Handle concurrent saving error
This commit is contained in:
Alexander Hartmann 2024-02-17 18:14:55 +01:00 committed by GitHub
commit d2bea1b264
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {