Delete quests from the player if there are errors loading them from the db

This commit is contained in:
Melledy
2022-08-21 22:19:34 -07:00
parent c53697da82
commit 1e649cd804
3 changed files with 19 additions and 3 deletions

View File

@@ -346,6 +346,10 @@ public class GameMainQuest {
public void save() {
DatabaseHelper.saveQuest(this);
}
public void delete() {
DatabaseHelper.deleteQuest(this);
}
public ParentQuest toProto() {
ParentQuest.Builder proto = ParentQuest.newBuilder()