Fixed double MythicLib skill manager reload

This commit is contained in:
Indyuce 2022-03-05 15:36:22 +01:00
parent 1671df5ed9
commit d0395f2b7f
2 changed files with 3 additions and 3 deletions

View File

@ -387,6 +387,8 @@ public class MMOCore extends LuminePlugin {
configManager = new ConfigManager();
if (clearBefore)
MythicLib.plugin.getSkills().initialize(true);
skillManager.initialize(clearBefore);
mineManager.initialize(clearBefore);
partyManager.initialize(clearBefore);

View File

@ -46,10 +46,8 @@ public class SkillManager implements MMOCoreManager {
public void initialize(boolean clearBefore) {
if (clearBefore) {
MythicLib.plugin.getSkills().initialize(true);
if (clearBefore)
skills.clear();
}
// Register MMOCore specific skills
MythicLib.plugin.getSkills().registerSkillHandler(new Ambers());