forked from Upstream/mmocore
Fixed double MythicLib skill manager reload
This commit is contained in:
parent
1671df5ed9
commit
d0395f2b7f
@ -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);
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user