mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-08-01 18:22:48 +00:00
Merge pull request #239 from jacklin213/patch-1
Make AbilityModuleManager handle all exceptions
This commit is contained in:
commit
c7bcc33f67
1 changed files with 3 additions and 9 deletions
|
@ -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());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue