mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-08-05 12:03:17 +00:00
Make AbilityModuleManager handle all exceptions
This commit is contained in:
parent
ab0c2807c6
commit
4aa7a95782
1 changed files with 3 additions and 9 deletions
|
@ -354,15 +354,9 @@ public class AbilityModuleManager {
|
||||||
descriptions.put(ab.getName(), ab.getDescription());
|
descriptions.put(ab.getName(), ab.getDescription());
|
||||||
authors.put(ab.getName(), ab.getAuthor());
|
authors.put(ab.getName(), ab.getAuthor());
|
||||||
}
|
}
|
||||||
catch (AbstractMethodError /* pre 1.6 BETA 8 */ | NoSuchMethodError /*
|
catch (Exception e) { //If triggered means ability was made before specific version .
|
||||||
* pre
|
ProjectKorra.log.warning("The ability " + ab.getName() + " was not able to load, if this message shows again please remove it!");
|
||||||
* 1
|
//ProjectKorra.log.warning("The ability " + ab.getName() + " is either broken or outdated. Please remove it!");
|
||||||
* .
|
|
||||||
* 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!");
|
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
ab.stop();
|
ab.stop();
|
||||||
abilities.remove(ab.getName());
|
abilities.remove(ab.getName());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue