From 30fa13ffb1f1572090f44a640b90122e863dab46 Mon Sep 17 00:00:00 2001 From: Indyuce Date: Sat, 12 Mar 2022 14:08:17 +0100 Subject: [PATCH] Fixed small issue with MM 5.0.1 API --- .../mmocore/comp/mythicmobs/load/MythicSkillTrigger.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/Indyuce/mmocore/comp/mythicmobs/load/MythicSkillTrigger.java b/src/main/java/net/Indyuce/mmocore/comp/mythicmobs/load/MythicSkillTrigger.java index f266da7c..b4c3fcba 100644 --- a/src/main/java/net/Indyuce/mmocore/comp/mythicmobs/load/MythicSkillTrigger.java +++ b/src/main/java/net/Indyuce/mmocore/comp/mythicmobs/load/MythicSkillTrigger.java @@ -9,6 +9,7 @@ import io.lumine.mythic.api.skills.SkillTrigger; import io.lumine.mythic.bukkit.BukkitAdapter; import io.lumine.mythic.bukkit.MythicBukkit; import io.lumine.mythic.core.skills.SkillMetadataImpl; +import io.lumine.mythic.core.skills.SkillTriggers; import io.lumine.mythic.lib.api.MMOLineConfig; import net.Indyuce.mmocore.api.player.PlayerData; import net.Indyuce.mmocore.api.quest.trigger.Trigger; @@ -37,7 +38,7 @@ public class MythicSkillTrigger extends Trigger { AbstractPlayer trigger = BukkitAdapter.adapt(player.getPlayer()); SkillCaster caster = new GenericCaster(trigger); - SkillMetadata skillMeta = new SkillMetadataImpl(new SkillTrigger("API", new ArrayList<>()), caster, trigger, BukkitAdapter.adapt(player.getPlayer().getLocation()), new HashSet<>(), null, 1); + SkillMetadata skillMeta = new SkillMetadataImpl(SkillTriggers.API, caster, trigger, BukkitAdapter.adapt(player.getPlayer().getLocation()), new HashSet<>(), null, 1); if (skill.isUsable(skillMeta)) skill.execute(skillMeta); }