oxygen mechanic throws error and doesn't work
[19:25:38 ERROR]: [MythicMobs] [SCHEDULER] Exception thrown whilst executing task
[19:25:38 WARN]: java.lang.IllegalStateException: EntityAirChangeEvent may only be triggered synchronously.
[19:25:38 WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:612)
[19:25:38 WARN]: at net.minecraft.world.entity.Entity.setAirTicks(Entity.java:2740)
[19:25:38 WARN]: at org.bukkit.craftbukkit.v1_17_R1.entity.CraftLivingEntity.setRemainingAir(CraftLivingEntity.java:281)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.adapters.bukkit.BukkitPlayer.setRemainingAir(BukkitPlayer.java:186)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.skills.mechanics.OxygenMechanic.castAtEntity(OxygenMechanic.java:32)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.lambda$executeTargetedEntitySkill$5(SkillMechanic.java:453)
[19:25:38 WARN]: at java.base/java.lang.Iterable.forEach(Iterable.java:75)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.executeTargetedEntitySkill(SkillMechanic.java:449)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.lambda$executeSkills$1(SkillMechanic.java:406)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.runMechanic(SkillMechanic.java:444)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.executeSkills(SkillMechanic.java:406)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillMechanic.execute(SkillMechanic.java:324)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillManager.executeMobTimerSkills(SkillManager.java:386)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.skills.SkillManager.runTimerSkills(SkillManager.java:368)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.clock.MythicMobsAsyncClock.run(MythicMobsAsyncClock.java:21)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.utils.Delegates$RunnableToConsumer.accept(Delegates.java:93)
[19:25:38 WARN]: at io.lumine.xikage.mythicmobs.utils.Schedulers$LumineTask.run(Schedulers.java:162)
[19:25:38 WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftTask.run(CraftTask.java:101)
[19:25:38 WARN]: at org.bukkit.craftbukkit.v1_17_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:54)
[19:25:38 WARN]: at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22)
[19:25:38 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
[19:25:38 WARN]: at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
[19:25:38 WARN]: at java.base/java.lang.Thread.run(Thread.java:831)
This mechanic doesn't work and throws an error in the console.
- oxygen{amount=10} @PIR{r=5} ~onTimer:60
Paper-116 (1.17.1) MythicMobs 5.0.0.ff407328