Skip to content

Conversation

@arconyx
Copy link
Owner

@arconyx arconyx commented Jan 21, 2026

The reported crash occurs in hexPantsStack.ifPresent, when the item is cast to a HexArmorItem. How this happens is a mystery, as we've already checked that it can be cast in an earlier step. Is the item somehow changing in the stack between check and use, or am I missing something obvious?

To work around this we're performing the cast immediately after checking it is possible and saving the result for later.

Closes #15

The reported crash occurs in hexPantsStack.ifPresent, when the item is
cast to a HexArmorItem. How this happens is a mystery, as we've already
checked that it can be cast in an earlier step. Is the item somehow
changing in the stack between check and use, or am I missing something
obvious?

To work around this we're performing the cast immediately after checking
it is possible and saving the result for later.

Closes #15
@arconyx arconyx marked this pull request as ready for review January 21, 2026 01:16
@arconyx arconyx merged commit 7ccd82d into main Jan 21, 2026
4 checks passed
@arconyx arconyx deleted the push-kulopwyqkoxk branch January 21, 2026 01:17
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.

Amethyst leggings crash on death

2 participants