Remove silent exceptions

This commit is contained in:
nossr50
2021-03-18 13:11:03 -07:00
parent c7a8d74963
commit 13a2d03444
2 changed files with 6 additions and 3 deletions

View File

@ -126,7 +126,8 @@ public class ScoreboardWrapper {
try {
cooldownTask.cancel();
}
catch (Throwable ignored) {
catch (Exception e) {
e.printStackTrace();
}
cooldownTask = null;
@ -430,8 +431,9 @@ public class ScoreboardWrapper {
try {
updateTask.cancel();
}
catch (Throwable ignored) {
} // catch NullPointerException and IllegalStateException and any Error; don't care
catch (Exception e) {
e.printStackTrace();
}
updateTask = null;