Mojira Archive
MC-137706

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

  1. Open book and quill
  2. Paste § to the book and add the letter 'k'
  3. Continue writing, the text should consist just from randomly changing characters
  4. Try to select obfuscated text

Fixed

Petr Myslík

2018-10-24, 11:39 PM

2019-05-19, 05:32 PM

2018-10-26, 10:17 AM

3

3

Confirmed

formatting-codes, writable_book

Minecraft 18w43b

Minecraft 18w43c