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();
|
configManager = new ConfigManager();
|
||||||
|
|
||||||
|
if (clearBefore)
|
||||||
|
MythicLib.plugin.getSkills().initialize(true);
|
||||||
skillManager.initialize(clearBefore);
|
skillManager.initialize(clearBefore);
|
||||||
mineManager.initialize(clearBefore);
|
mineManager.initialize(clearBefore);
|
||||||
partyManager.initialize(clearBefore);
|
partyManager.initialize(clearBefore);
|
||||||
|
@ -46,10 +46,8 @@ public class SkillManager implements MMOCoreManager {
|
|||||||
|
|
||||||
public void initialize(boolean clearBefore) {
|
public void initialize(boolean clearBefore) {
|
||||||
|
|
||||||
if (clearBefore) {
|
if (clearBefore)
|
||||||
MythicLib.plugin.getSkills().initialize(true);
|
|
||||||
skills.clear();
|
skills.clear();
|
||||||
}
|
|
||||||
|
|
||||||
// Register MMOCore specific skills
|
// Register MMOCore specific skills
|
||||||
MythicLib.plugin.getSkills().registerSkillHandler(new Ambers());
|
MythicLib.plugin.getSkills().registerSkillHandler(new Ambers());
|
||||||
|
Loading…
Reference in New Issue
Block a user