Champions

Champions

32M Downloads

"String index out of range: 0" crash when using random names in the config.

xlea99 opened this issue ยท 0 comments

commented

Versions (Be specific, do not write "latest"):

  • Champions: 1.0.10.1
  • Forge: 14.23.5.2838

Observed Behavior:

When adding custom names to champions.cfg, the game will sometimes crash with a "java.lang.StringIndexOutOfBoundsException: String index out of range: 0". I believe this might be happening since in my config file, I use commas sometimes in the names I want to add like ", Lord of Death" or "the Good, the Great". I'm not really positive though.

What's weird is that the names do work if you manually spawn in the creatures some place where natural spawns can't happen, like I'll actually get champions named 'Bob, Lord of Death'.

Expected Behavior:

It to not crash

Steps to Reproduce:

Just add names to the config file with commas in them. If you go into a normal world, chances are it'll crash pretty quickly because what I assume is happening is a champion spawns in the world with one of those custom names and it crashes.

Crash Log: https://pastebin.com/s8i2sLJF