Fixed an issue with Shulker Missile

This commit is contained in:
Indyuce 2022-03-05 15:36:51 +01:00
parent 912e864578
commit 677cdae3ba
2 changed files with 3 additions and 3 deletions

View File

@ -138,9 +138,6 @@ public class MMOItems extends LuminePlugin {
typeManager.reload();
templateManager.preloadTemplates();
// Register MMOItems-specific skills
MythicLib.plugin.getSkills().registerSkillHandler(new Shulker_Missile());
if (Bukkit.getPluginManager().getPlugin("MMOCore") != null) new MMOCoreMMOLoader();
if (Bukkit.getPluginManager().getPlugin("mcMMO") != null)

View File

@ -6,6 +6,7 @@ import net.Indyuce.mmoitems.MMOItems;
import net.Indyuce.mmoitems.MMOUtils;
import net.Indyuce.mmoitems.api.ConfigFile;
import net.Indyuce.mmoitems.skill.RegisteredSkill;
import net.Indyuce.mmoitems.skill.Shulker_Missile;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@ -80,6 +81,8 @@ public class SkillManager {
if (clearBefore)
skills.clear();
MythicLib.plugin.getSkills().registerSkillHandler(new Shulker_Missile());
File skillFolder = new File(MMOItems.plugin.getDataFolder() + "/skill");
if (!skillFolder.exists()) {