Catch more exceptions when doing WG reflection checks

This commit is contained in:
nossr50
2019-09-19 17:21:25 -07:00
parent 51a373db4f
commit 28c0215a93
5 changed files with 1 additions and 8 deletions

View File

@ -101,7 +101,7 @@ public class WorldGuardUtils {
try {
Class<?> checkForClass = Class.forName(classString);
detectedIncompatibleWG = false; //In case this was set to true previously
} catch (ClassNotFoundException e) {
} catch (ClassNotFoundException | NoClassDefFoundError e) {
mcMMO.p.getLogger().severe("Missing WorldGuard class - "+classString);
markWGIncompatible();
return false;