Bug Closed · Resolved

Issues with MythicHealMechanicEvent in asynchronous mode

#3598 opened by Unknown 3 years ago

Unknownreported this bug

I have several issues, here is an examples:

[Craft Scheduler Thread - 1181 - MythicMobs/WARN]: [MythicMobs] Couldn't execute skill 'LeechingAura1': Enable debugging for a stack trace.
MythicMobs/WARN]: [MythicMobs] Couldn't execute skill 'LeechingAura4': Enable debugging for a stack trace.
MythicMobs/WARN]: [MythicMobs] Couldn't execute skill 'HexedExplosion': Enable debugging for a stack trace.

Debug log:

[14:09:14] [lumine-scheduler-2/WARN]: java.lang.IllegalStateException: MythicHealMechanicEvent may only be triggered synchronously.
[14:09:14] [lumine-scheduler-2/WARN]: 	at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:658)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.mechanics.HealMechanic.castAtEntity(HealMechanic.java:48)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.lambda$executeTargetedEntitySkill$7(SkillMechanic.java:520)
[14:09:14] [lumine-scheduler-2/WARN]: 	at java.base/java.lang.Iterable.forEach(Iterable.java:75)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.executeTargetedEntitySkill(SkillMechanic.java:516)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.lambda$executeSkills$3(SkillMechanic.java:473)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.runMechanic(SkillMechanic.java:511)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.executeSkills(SkillMechanic.java:473)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.execute(SkillMechanic.java:390)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.MetaSkill.execute(MetaSkill.java:284)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.MetaSkill.execute(MetaSkill.java:259)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.mechanics.MetaSkillMechanic.cast(MetaSkillMechanic.java:122)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.executeSkills(SkillMechanic.java:444)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.skills.SkillMechanic.execute(SkillMechanic.java:390)
[14:09:14] [Server thread/INFO]: [MythicMobs] [i] Calling MythicMobLootDropEvent for UnholyPriest
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.core.mobs.MobType.lambda$executeSkills$4(MobType.java:1140)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.bukkit.utils.Delegates$RunnableToSupplier.get(Delegates.java:121)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.bukkit.utils.promise.LuminePromise$SupplyRunnable.run(LuminePromise.java:654)
[14:09:14] [lumine-scheduler-2/WARN]: 	at MythicMobs-5.1.2.jar//io.lumine.mythic.bukkit.utils.tasks.LumineExecutors$SchedulerWrappedRunnable.run(LumineExecutors.java:70)
[14:09:14] [Server thread/INFO]: [MythicMobs] [i] Calling MythicMobDeathEvent for UnholyPriest
[14:09:14] [lumine-scheduler-2/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
[14:09:14] [lumine-scheduler-2/WARN]: 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
[14:09:14] [lumine-scheduler-2/WARN]: 	at java.base/java.lang.Thread.run(Thread.java:833)
[14:09:14] [Server thread/INFO]: [MythicMobs] +--- Generating LootBag

All of them are related to "heal" skill. I have another skill in vanillamobs that just heals:

SHULKER:
  Health: 60
  Armor: 10
  Skills:
   - heal{amount=20} @self ~onDamaged 0.1

And when it is used by a mob, an error appears:

[lumine-scheduler-961/ERROR]: [MythicMobs] [SCHEDULER] ``Exception thrown whilst executing task
[21:13:31] [lumine-scheduler-961/WARN]: ``java.lang.IllegalStateException: MythicHealMechanicEvent may only be triggered synchronously.

That is, all issues are related to the inability to heal in asynchronous mode (i use paper 1.19.2 and MM 5.1.4)

Sign in to join the discussion.