Skip to content

Uses pattern matching cast instead of unsafe PlayerEntity cast to ensure the game does not crash due to unsafe cast#73

Open
JordanPlayz158 wants to merge 1 commit intowisp-forest:1.20from
JordanPlayz158:1.20
Open

Uses pattern matching cast instead of unsafe PlayerEntity cast to ensure the game does not crash due to unsafe cast#73
JordanPlayz158 wants to merge 1 commit intowisp-forest:1.20from
JordanPlayz158:1.20

Conversation

@JordanPlayz158
Copy link
Copy Markdown

@JordanPlayz158 JordanPlayz158 commented Sep 7, 2025

As mentioned in the commit message, this is not really the fault of Conjuring as it does check DamageSource#getName to ensure it is a damage source involving players but with a really small change you can ensure Conjuring doesn't result in a crash in the event of mislabeled DamageSources

Fixes #63

…sp-forest#63 which I also encountered due to Archon Boss Inigo's Beam attack being marked as a player attack (so not Conjuring's fault but still safer to do a pattern matching cast instead)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant