lastIndexOf, Note Don't code while sick.

This commit is contained in:
Lex Manos 2014-05-24 21:48:55 -07:00
parent cad049caa1
commit bcec606b12

View file

@ -278,7 +278,7 @@ public class FMLDeobfuscatingRemapper extends Remapper {
{
return classNameBiMap.inverse().get(typeName);
}
int dollarIdx = typeName.indexOf('$');
int dollarIdx = typeName.lastIndexOf('$');
if (dollarIdx > -1)
{
return unmap(typeName.substring(0, dollarIdx)) + "$" + typeName.substring(dollarIdx + 1);