Merge pull request #239 from jacklin213/patch-1

Make AbilityModuleManager handle all exceptions
This commit is contained in:
OmniCypher 2015-09-09 19:26:36 -07:00
commit c7bcc33f67

View file

@ -354,15 +354,9 @@ public class AbilityModuleManager {
descriptions.put(ab.getName(), ab.getDescription());
authors.put(ab.getName(), ab.getAuthor());
}
catch (AbstractMethodError /* pre 1.6 BETA 8 */ | NoSuchMethodError /*
* pre
* 1
* .
* 7
* BETA
* 2
*/ e) { //If triggered means ability was made before commented versions
ProjectKorra.log.warning("The ability " + ab.getName() + " is either broken or outdated. Please remove it!");
catch (Exception e) { //If triggered means ability was made before specific version .
ProjectKorra.log.warning("The ability " + ab.getName() + " was not able to load, if this message shows again please remove it!");
//ProjectKorra.log.warning("The ability " + ab.getName() + " is either broken or outdated. Please remove it!");
e.printStackTrace();
ab.stop();
abilities.remove(ab.getName());