#Opening any spell book instantly crashes the game

1 messages · Page 1 of 1 (latest)

spark ibex
#

Neoforge 1.21.1 - 21.1.80
Ars Nouveau 5.3.0
Exact mod jist: ars_nouveau-1.21.1-5.3.0-all curios-neoforge-9.0.15+1.21.1 geckolib-neoforge-1.21.1-4.7
This happens for all spell books, every time

To reproduce the issue: open any spell book (default keybind is 'c')

#

crash appears to occur in the validate function for GuiSpellBook

#

i think this is fixed in the latest version
it appears the line of code has been changed to```java
List<AbstractSpellPart> slicedSpell = spell.subList(0, spell.isEmpty() ? 0 : (lastGlyphNoGap + 1));

#

old, bugged line: List<AbstractSpellPart> slicedSpell = spell.subList(0, lastGlyphNoGap + 1);

#

this issue may now be marked as resolved

#

is a non-empty spell always supposed to produce a non-empty slicedSpell?