mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 00:47:32 +00:00
Fix localization not working in ToolForge
This commit is contained in:
1 parent
57c3158ef4
commit
1a486bb38e
1 file changed
+9
-1
@@ -57,7 +57,15 @@ public class ToolForgeGui extends ToolStationGui
|
||||
iconX = b.element.iconsX;
|
||||
iconY = b.element.iconsY;
|
||||
title = "\u00A7n" + b.element.title;
|
||||
body = b.element.body;
|
||||
body = StatCollector.translateToLocal(b.element.body);
|
||||
if(body != null) {
|
||||
int i;
|
||||
// for some really weird reason replaceAll doesn't find "\\n", but indexOf does. We have to replace manually.
|
||||
while((i = body.indexOf("\\n")) >= 0)
|
||||
{
|
||||
body = body.substring(0, i) + '\n' + body.substring(i+2);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user