AlexModGuy / AlexsCaves

76 stars 38 forks source link

Server crash when the desolate dagger is used to hit an entity. #1050

Closed CtrlAnt closed 2 months ago

CtrlAnt commented 2 months ago

Error : java.lang.ClassCastException: class com.github.alexmodguy.alexscaves.server.entity.item.DesolateDaggerEntity cannot be cast to class net.minecraft.world.entity.LivingEntity (com.github.alexmodguy.alexscaves.server.entity.item.DesolateDaggerEntity is in module alexscaves@1.1.4 of loader 'TRANSFORMER' @1c2dd89b; net.minecraft.world.entity.LivingEntity is in module minecraft@1.20.1 of loader 'TRANSFORMER' @1c2dd89b)

Here is the complete crash report : https://pastebin.com/wQxGhxrh

AlexModGuy commented 2 months ago

at com.teamdurt.netherdungeons.event.NDEventsHandler.applyVampirismEffect(NDEventsHandler.java:22) ~[netherdungeons-1.1.0-alpha2.jar%23444!/:1.1.0-alpha2] {re:classloading}

netherdungeons needs to check if an entity belongs to LivingEntity before casting it to that. report this to their bug tracker.