Skip to content

Fixed a ClassCastError crash in bookshelf loot tables#909

Open
Xvareon wants to merge 6 commits into
Electroblob77:1.12.2from
Xvareon:1.12.2
Open

Fixed a ClassCastError crash in bookshelf loot tables#909
Xvareon wants to merge 6 commits into
Electroblob77:1.12.2from
Xvareon:1.12.2

Conversation

@Xvareon
Copy link
Copy Markdown
Contributor

@Xvareon Xvareon commented May 20, 2026

  • This crash happens if there is a problematic loot table or addon that does not have proper properties of the item spellbook class or/and item scroll class
  • So we just return the item without the metadata for random spells if this happens instead of crashing

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