Not Enough Animations

Not Enough Animations

77M Downloads

Friends&Foes crash

Closed this issue ยท 1 comments

commented

My PlayerIllusionEntityModel extends PlayerModel, and also some other parts of the entity carefully extends Player related code, but there should probably be some kind of check before the class cast, which could hopefully resolve the issue.

---- Minecraft Crash Report ----
// I let you down. Sorry :(

Time: 2025-05-01 23:36:56
Description: Rendering entity in world

java.lang.ClassCastException: class com.faboslav.friendsandfoes.common.entity.PlayerIllusionEntity cannot be cast to class net.minecraft.class_742 (com.faboslav.friendsandfoes.common.entity.PlayerIllusionEntity and net.minecraft.class_742 are in unnamed module of loader 'knot' @4ae3c1cd)
at knot//net.minecraft.class_591.handler$dko000$notenoughanimations$setupAnim(class_591.java:573)
at knot//net.minecraft.class_591.method_62110(class_591.java:134)
at knot//net.minecraft.class_591.method_2819(class_591.java:19)
at knot//net.minecraft.class_922.method_4054(class_922.java:101)
at knot//net.minecraft.class_922.method_3936(class_922.java:42)
at knot//net.minecraft.class_898.method_68834(class_898.java:203)
at knot//net.minecraft.class_898.method_3954(class_898.java:178)
at knot//net.minecraft.class_898.method_62424(class_898.java:160)
at knot//net.minecraft.class_761.method_22977(class_761.java:958)
at knot//net.minecraft.class_761.method_62207(class_761.java:835)
at knot//net.minecraft.class_761.method_62214(class_761.java:626)
at knot//net.minecraft.class_9909.method_61910(class_9909.java:67)
at knot//net.minecraft.class_761.method_22710(class_761.java:551)
at knot//net.minecraft.class_757.method_3188(class_757.java:756)
at knot//net.minecraft.class_757.method_3192(class_757.java:517)
at knot//net.minecraft.class_310.method_1523(class_310.java:1353)
at knot//net.minecraft.class_310.method_1514(class_310.java:936)
at knot//net.minecraft.client.main.Main.main(Main.java:265)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:480)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:105)
at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129)
at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)
commented

I'll check why this goes wrong and add a fix.