Fix some behavior of trial avatars

investigation is required on the exceptions thrown
This commit is contained in:
KingRainbow44
2023-04-29 02:01:00 -04:00
parent d5f75e1889
commit 391903ac0e
3 changed files with 36 additions and 22 deletions

View File

@@ -18,9 +18,9 @@ public class ExecGrantTrialAvatar extends QuestExecHandler {
.addTrialAvatar(Integer.parseInt(paramStr[0]), quest.getMainQuestId());
Grasscutter.getLogger()
.debug("Added trial avatar to team for quest {}", quest.getSubQuestId());
return true;
} catch (RuntimeException ignored) {
} catch (RuntimeException exception) {
exception.printStackTrace();
return false;
}
}

View File

@@ -16,7 +16,8 @@ public class ExecRemoveTrialAvatar extends QuestExecHandler {
Grasscutter.getLogger()
.debug("Removed trial avatar from team for quest {}", quest.getSubQuestId());
return true;
} catch (RuntimeException ignored) {
} catch (RuntimeException exception) {
exception.printStackTrace();
return false;
}
}