Using lightning ball against invaders in MineColonies can randomly cause the included error, leading to a full crash, and then it crashes on every load after that.
It looks like it for some reason tried to cast NPC to player type without type checking.
java.lang.ClassCastException: class com.minecolonies.core.entity.mobs.barbarians.EntityArcherBarbarian cannot be cast to class net.minecraft.world.entity.player.Player (com.minecolonies.core.entity.mobs.barbarians.EntityArcherBarbarian is in module minecolonies@1.19.2-1.1.584-BETA of loader 'TRANSFORMER' @7f2b584b; net.minecraft.world.entity.player.Player is in module minecraft@1.19.2 of loader 'TRANSFORMER' @7f2b584b)
at by.dragonsurvivalteam.dragonsurvival.common.entity.projectiles.BallLightningEntity.onHitCommon(BallLightningEntity.java:71) ~[DragonSurvival-1.19.2-13.06.2024-all.jar%23259!/:1.19.2-13.06.2024] {re:classloading}
■ Your Discord ID or other contacts
zeracronius
■ Dragon Survival version
DragonSurvival-1.19.2-13.06.2024-all.jar
■ Single game or server?
Single-player (Default)
■ Describe the bug
Using lightning ball against invaders in MineColonies can randomly cause the included error, leading to a full crash, and then it crashes on every load after that.
It looks like it for some reason tried to cast NPC to player type without type checking.
java.lang.ClassCastException: class com.minecolonies.core.entity.mobs.barbarians.EntityArcherBarbarian cannot be cast to class net.minecraft.world.entity.player.Player (com.minecolonies.core.entity.mobs.barbarians.EntityArcherBarbarian is in module minecolonies@1.19.2-1.1.584-BETA of loader 'TRANSFORMER' @7f2b584b; net.minecraft.world.entity.player.Player is in module minecraft@1.19.2 of loader 'TRANSFORMER' @7f2b584b) at by.dragonsurvivalteam.dragonsurvival.common.entity.projectiles.BallLightningEntity.onHitCommon(BallLightningEntity.java:71) ~[DragonSurvival-1.19.2-13.06.2024-all.jar%23259!/:1.19.2-13.06.2024] {re:classloading}
■ Crash Report File and Logs
crash-2024-06-15_20.07.49-server.txt