ClassCastException
So right now I don't even know why just randomly pops this exception into console, but it's happening in class MobExecutor (io.lumine.mythic.core.mobs.MobExecutor.SetupMythicMobCompat
) and the plugin prints a Scheduler error too. At line 585 it tries to cast ActiveMob.class
to LivingEntity.class (Bukkit).
. If there's something I didn't write down then ask for it, and thanks.
Have a nice day/night or whatever :)
Oh and here's the whole exception thrown into the console:
[15:21:31 WARN]: java.lang.ClassCastException: class io.lumine.mythic.core.mobs.ActiveMob cannot be cast to class org.bukkit.entity.LivingEntity (io.lumine.mythic.core.mobs.ActiveMob is in unnamed module of loader 'MythicMobs-5.6.1 (1).jar' @4c0777b4; org.bukkit.entity.LivingEntity is in unnamed module of loader java.net.URLClassLoader @22927a81)
[15:21:31 WARN]: at MythicMobs-5.6.1 (1).jar//io.lumine.mythic.core.mobs.MobExecutor.SetupMythicMobCompat(MobExecutor.java:585)
[15:21:31 WARN]: at MythicMobs-5.6.1 (1).jar//io.lumine.mythic.bukkit.listeners.MobListeners.lambda$load$6(MobListeners.java:244)
[15:21:31 WARN]: at MythicMobs-5.6.1 (1).jar//io.lumine.mythic.bukkit.utils.Delegates$RunnableToSupplier.get(Delegates.java:121)
[15:21:31 WARN]: at MythicMobs-5.6.1 (1).jar//io.lumine.mythic.bukkit.utils.promise.LuminePromise$SupplyRunnable.run(LuminePromise.java:654)
[15:21:31 WARN]: at MythicMobs-5.6.1 (1).jar//io.lumine.mythic.bukkit.utils.tasks.LumineExecutors$SchedulerWrappedRunnable.run(LumineExecutors.java:70)
[15:21:31 WARN]: at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101)
[15:21:31 WARN]: at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480)
[15:21:31 WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1497)
[15:21:31 WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:486)
[15:21:31 WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1406)
[15:21:31 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1177)
[15:21:31 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320)
[15:21:31 WARN]: at java.base/java.lang.Thread.run(Thread.java:1623)
[15:21:31 ERROR]: [MythicMobs] [SCHEDULER] Exception thrown whilst executing task
[15:21:31 WARN]: java.lang.ClassCastException: class io.lumine.mythic.core.mobs.ActiveMob cannot be cast to class org.bukkit.entity.LivingEntity (io.lumine.mythic.core.mobs.ActiveMob is in unnamed module of loader 'MythicMobs-5.6.1 (1).jar' @4c0777b4; org.bukkit.entity.LivingEntity is in unnamed module of loader java.net.URLClassLoader @22927a81)
[15:21:31 WARN]: at MythicMobs-5.6.1 (1).jar//io.lumine.mythic.core.mobs.MobExecutor.SetupMythicMobCompat(MobExecutor.java:585)
[15:21:31 WARN]: at MythicMobs-5.6.1 (1).jar//io.lumine.mythic.bukkit.listeners.MobListeners.lambda$load$6(MobListeners.java:244)
[15:21:31 WARN]: at MythicMobs-5.6.1 (1).jar//io.lumine.mythic.bukkit.utils.Delegates$RunnableToSupplier.get(Delegates.java:121)
[15:21:31 WARN]: at MythicMobs-5.6.1 (1).jar//io.lumine.mythic.bukkit.utils.promise.LuminePromise$SupplyRunnable.run(LuminePromise.java:654)
[15:21:31 WARN]: at MythicMobs-5.6.1 (1).jar//io.lumine.mythic.bukkit.utils.tasks.LumineExecutors$SchedulerWrappedRunnable.run(LumineExecutors.java:70)
[15:21:31 WARN]: at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftTask.run(CraftTask.java:101)
[15:21:31 WARN]: at org.bukkit.craftbukkit.v1_20_R2.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480)
[15:21:31 WARN]: at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1497)
[15:21:31 WARN]: at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:486)
[15:21:31 WARN]: at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1406)
[15:21:31 WARN]: at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1177)
[15:21:31 WARN]: at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320)```