Bug: Potion effect application in aura runs asynchrously

Discussion in 'Bug Reports' started by LocusAzzurro, Nov 7, 2019.

  1. LocusAzzurro

    LocusAzzurro New Member
    Premium Supporter Supporter

    Joined:
    Apr 8, 2018
    Messages:
    2
    Likes Received:
    0
    Enter a brief description of what is broken Potion effect application in aura runs asynchrously

    What version of Minecraft are you using? 1.14

    What server jar are you using? PaperSpigot

    What is this a bug report for? Artifacts

    What version of the plugin are you using? MM 4.7.0 Artifacts 0.1.24

    Describe the bug. Be as specific as possible, images or short gifs/videos are welcome but save configuration files for later sections. Write a whole paragraph if needed, help us bug testers replicate your issue!
    When using potion mechanic as part of onTick skill of an aura, the sub-skill cannot be executed (a warning is shown on console)

    With debug mode enabled, I was able to get some log on it detailed below. (Async effect add)

    Using forcesync doesn't help either.

    Example Configurations
    Skills:

    Blind_Flash:
    Skills:
    - Aura{auraName=Blind_Flash;onTick=Blind_Tick_5;interval=100;duration=600;maxStacks=10;sync=true} @Self

    Blind_Tick_5:
    Skills:
    - potion{type=BLINDNESS;duration=20;level=1;sync=true} @Self

    Log:
    [06:29:16 INFO]: [MythicMobs] +--- + Evaluating SkillMechanic potion{type=BLINDNESS;duration=20;level=1;sync=true} @Self
    [06:29:16 INFO]: [MythicMobs] +--- + Applying entity target filters
    [06:29:16 WARN]: [MythicMobs] Couldn't execute skill 'Blind_Tick_5': Enable debugging for a stack trace.
    [06:29:16 WARN]: java.lang.IllegalStateException: Asynchronous effect add!
    [06:29:16 WARN]: at org.spigotmc.AsyncCatcher.catchOp(AsyncCatcher.java:15)
    [06:29:16 WARN]: at net.minecraft.server.v1_14_R1.EntityLiving.addEffect(EntityLiving.java:845)
    [06:29:16 WARN]: at org.bukkit.craftbukkit.v1_14_R1.entity.CraftLivingEntity.addPotionEffect(CraftLivingEntity.java:392)
    [06:29:16 WARN]: at org.bukkit.craftbukkit.v1_14_R1.entity.CraftLivingEntity.addPotionEffect(CraftLivingEntity.java:381)
    [06:29:16 WARN]: at io.lumine.xikage.mythicmobs.adapters.bukkit.BukkitEntity.addPotionEffect(BukkitEntity.java:156)
    [06:29:16 WARN]: at io.lumine.xikage.mythicmobs.skills.mechanics.PotionMechanic.castAtEntity(PotionMechanic.java:57)
    [06:29:16 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.lambda$executeTargetedEntitySkill$3(SkillMechanic.java:394)
    [06:29:16 WARN]: at java.lang.Iterable.forEach(Unknown Source)
    [06:29:16 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.executeTargetedEntitySkill(SkillMechanic.java:390)
    [06:29:16 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.executeSkills(SkillMechanic.java:356)
    [06:29:16 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.execute(SkillMechanic.java:264)
    [06:29:16 WARN]: at io.lumine.xikage.mythicmobs.skills.Skill.execute(Skill.java:275)
    [06:29:16 WARN]: at io.lumine.xikage.mythicmobs.skills.Skill.execute(Skill.java:246)
    [06:29:16 WARN]: at io.lumine.xikage.mythicmobs.skills.auras.Aura$AuraTracker.executeAuraSkill(Aura.java:220)
    [06:29:16 WARN]: at io.lumine.xikage.mythicmobs.skills.auras.Aura$AuraTracker.executeAuraSkill(Aura.java:197)
    [06:29:16 WARN]: at io.lumine.xikage.mythicmobs.skills.auras.Aura$AuraTracker.auraTick(Aura.java:321)
    [06:29:16 WARN]: at io.lumine.xikage.mythicmobs.skills.auras.Aura$AuraTracker.run(Aura.java:302)
    [06:29:16 WARN]: at io.lumine.utils.tasks.Scheduler$DelegateConsumer.accept(Scheduler.java:532)
    [06:29:16 WARN]: at io.lumine.utils.tasks.Scheduler$TaskImpl.run(Scheduler.java:434)
    [06:29:16 WARN]: at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftTask.run(CraftTask.java:84)
    [06:29:16 WARN]: at org.bukkit.craftbukkit.v1_14_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54)
    [06:29:16 WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
    [06:29:16 WARN]: at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    [06:29:16 WARN]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    [06:29:16 WARN]: at java.lang.Thread.run(Unknown Source)
     
    #1

Share This Page