소스 검색

Remove silent exceptions

nossr50 4 년 전
부모
커밋
13a2d03444
2개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 0
      Changelog.txt
  2. 5 3
      src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java

+ 1 - 0
Changelog.txt

@@ -4,6 +4,7 @@ Version 2.1.182
     Fixed several errors in de locale (Thanks TheBusyBiscuit & w1tcherrr)
     Fixed a bug where double smelt never succeeded if the furnace was empty
     Added some safety so that mcMMO automatic save interval is never more frequent than 1 minute
+    Removed a few "silent" exceptions for scoreboards & mcMMO
 
 Version 2.1.181
     mcMMO no longer pointlessly tries to check for missing UUIDs for FlatFile database

+ 5 - 3
src/main/java/com/gmail/nossr50/util/scoreboards/ScoreboardWrapper.java

@@ -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;