mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 10:14:43 +02:00
Remove silent exceptions
This commit is contained in:
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user