ClassCastException when player does not render PlayerModel
Cheaterpaul opened this issue ยท 1 comments
The Problem is here
This is problematic, because you assume a PlayerModel is rendered for the PlayerEntity, which may not be the case.
This can occur when someone renders the model in RenderPlayerEvent like i do by rendering a WerewolfModel instead of the player model.
https://github.com/TeamLapen/Werewolves/blob/09b51b548217d9a789169e5337b95383c5ceb5ed/src/main/java/de/teamlapen/werewolves/client/core/ClientEventHandler.java#L44
Related crashreport: crash-2021-02-21_17.32.00-client.txt