`hasPotionEffect` condition throws exception on 1.20.6
Condition always results in an identical error:
[15:23:00 WARN]: java.lang.NullPointerException: Cannot invoke "org.bukkit.NamespacedKey.getNamespace()" because "key" is null
[15:23:00 WARN]: at org.bukkit.craftbukkit.util.CraftNamespacedKey.toMinecraft(CraftNamespacedKey.java:28)
[15:23:00 WARN]: at org.bukkit.craftbukkit.CraftRegistry.get(CraftRegistry.java:190)
[15:23:00 WARN]: at org.bukkit.potion.PotionEffectType.getByName(PotionEffectType.java:355)
[15:23:00 WARN]: at org.bukkit.craftbukkit.legacy.FieldRename.getByName_PotionEffectType(FieldRename.java:253)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.bukkit.adapters.BukkitEntity.BUKKIT_CUSTOM_METHOD_org_bukkit_craftbukkit_legacy_FieldRename_getByName_PotionEffectType(BukkitEntity.java)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.bukkit.adapters.BukkitEntity.hasPotionEffect(BukkitEntity.java:691)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.conditions.all.HasPotionEffectCondition.check(HasPotionEffectCondition.java:60)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillCondition.lambda$evaluateTargets$0(SkillCondition.java:280)
[15:23:00 WARN]: at java.base/java.util.Collection.removeIf(Collection.java:583)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillCondition.evaluateTargets(SkillCondition.java:275)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.targeters.IEntitySelector.filter(IEntitySelector.java:249)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.AbstractSkill.evaluateTargets(AbstractSkill.java:380)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.AbstractSkill.evaluateTargets(AbstractSkill.java:342)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillMechanic.executeSkills(SkillMechanic.java:495)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillMechanic.execute(SkillMechanic.java:459)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.MetaSkill.execute(MetaSkill.java:313)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.MetaSkill.execute(MetaSkill.java:283)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.mechanics.MetaSkillMechanic.cast(MetaSkillMechanic.java:161)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillMechanic.executeSkills(SkillMechanic.java:513)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillMechanic.execute(SkillMechanic.java:459)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.MetaSkill.execute(MetaSkill.java:313)
[15:23:00 WARN]: at MythicMobsPremium-5.7.0-SNAPSHOT.jar//io.lumine.mythic.core.skills.AbstractSkill$DelayedSkill.run(AbstractSkill.java:456)
[15:23:00 WARN]: at org.bukkit.craftbukkit.scheduler.CraftTask.run(CraftTask.java:101)
[15:23:00 WARN]: at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:482)
[15:23:00 WARN]: at net.minecraft.server.MinecraftServer.tickChildren(MinecraftServer.java:1702)
[15:23:00 WARN]: at net.minecraft.server.dedicated.DedicatedServer.tickChildren(DedicatedServer.java:467)
[15:23:00 WARN]: at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1574)
[15:23:00 WARN]: at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1234)
[15:23:00 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:323)
[15:23:00 WARN]: at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by transition to registry-based potion access requiring the namespaced key of the effect type, not the default PotionEffectType#toString()
.