Step 1: Give @TheVikingWarrior an example of how to translate toolstation tool descriptions

This commit is contained in:
Bernhard Bonigl committed 2014-10-22 22:22:00 +02:00
1 parent f1d048128d
commit ffcd7f26b4
3 files changed
+22 -7

No files matched your search

@@ -120,7 +120,15 @@ public class ToolStationGui extends GuiContainer implements INEIGuiHandler
iconX = element.iconsX;
iconY = element.iconsY;
title = "\u00A7n" + element.title;
body = element.body;
body = StatCollector.translateToLocal(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);
}
}
}
void setSlotType (int type)