mirror of
https://github.com/exituser/Brewery.git
synced 2026-09-17 04:19:01 +00:00
Avoid catching any Throwables
This commit is contained in:
@@ -25,7 +25,7 @@ public class SlimefunPluginItem extends PluginItem {
|
|||||||
if (sfItem != null) {
|
if (sfItem != null) {
|
||||||
return sfItem.getId().equalsIgnoreCase(getItemId());
|
return sfItem.getId().equalsIgnoreCase(getItemId());
|
||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} catch (Exception | LinkageError e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
P.p.errorLog("Could not check Slimefun for Item ID");
|
P.p.errorLog("Could not check Slimefun for Item ID");
|
||||||
BConfig.hasSlimefun = false;
|
BConfig.hasSlimefun = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user