It's about time we sorted out all these translations

This commit is contained in:
Electroblob77
2020-05-24 23:57:46 +01:00
parent d9f7d94115
commit 3e0dbb9755
12 changed files with 66 additions and 51 deletions
@@ -42,12 +42,12 @@ public class Curse extends PotionMagicEffect {
super.renderInventoryEffect(x, y, effect, mc);
String name = net.minecraft.client.resources.I18n.format(this.getName());
String name = Wizardry.proxy.translate(this.getName());
// Amplifier 0 (which would be I) is not rendered and the tooltips only go up to X (amplifier 9)
// The vanilla implementation uses elseifs and only goes up to 4... how lazy.
if(effect.getAmplifier() > 0 && effect.getAmplifier() < 10){
name = name + " " + net.minecraft.client.resources.I18n.format("enchantment.level." + (effect.getAmplifier() + 1));
name = name + " " + Wizardry.proxy.translate("enchantment.level." + (effect.getAmplifier() + 1));
}
List<String> lines = mc.fontRenderer.listFormattedStringToWidth(name, 100);