mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2026-03-26 17:43:07 +01:00
Fix some behavior of trial avatars
investigation is required on the exceptions thrown
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user