Fix material abilities not getting localized for display

This commit is contained in:
Bernhard Bonigl committed 2014-08-20 17:08:12 +02:00
1 parent 608de3ab70
commit fc0420d418
3 files changed
+10 -3

No files matched your search

@@ -156,9 +156,9 @@ public class MaterialPage extends BookPage
String ability = material.ability();
if (!ability.equals(""))
{
manual.fonts.drawString(materialTrait + ": " + material.ability(), localWidth, localHeight + 120 + 10 * offset, 0);
manual.fonts.drawString(materialTrait + ": " + material.localizedAbility(), localWidth, localHeight + 120 + 10 * offset, 0);
offset++;
if (ability.equals("Writable"))
if (ability.equals("materialtraits.writable"))
manual.fonts.drawString(extraMod, localWidth, localHeight + 120 + 10 * offset, 0);
}