Selecting obfuscated text in book crashes the game
The bug
When you edit the book and attempt to select part of text that is obfuscated, the game crashes.
Crash report
Description: Rendering screen java.lang.StringIndexOutOfBoundsException: String index out of range: 35 at java.lang.String.substring(String.java:1951) at cor.m(SourceFile:670) at cor.a(SourceFile:614) at cxp.a(SourceFile:795) at cjj.c(SourceFile:817) at cjj.a(SourceFile:380) at net.minecraft.client.main.Main.main(SourceFile:144)
How to reproduce
- Open book and quill
- Paste § to the book and add the letter 'k'
- Continue writing, the text should consist just from randomly changing characters
- Try to select obfuscated text