Dragon Survival [Forge]

Dragon Survival [Forge]

1M Downloads

[1.19.2 Bug]: Lightning call can randomly cause complete crash

Zeracronius opened this issue · 1 comments

commented

■ 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 [email protected] of loader 'TRANSFORMER' @7f2b584b; net.minecraft.world.entity.player.Player is in module [email protected] 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

commented

Just discovered this issue has already been reported, but the search didn't find it