fix(i18n): autochisel upgrades names

Fix code handling slots and upgrade localized names
Sync locale files
This commit is contained in:
Léa Gris committed 2020-02-24 21:39:09 +01:00
1 parent 71d6c20312
commit 883cdbccae
9 files changed
+4014 -399

No files matched your search

@@ -38,13 +38,13 @@ public class TileEntityAutoChisel extends TileEntity implements ISidedInventory
public String getUnlocalizedName() {
if (Features.AUTO_CHISEL_UPGRADES.enabled()) {
return ChiselItems.upgrade.getUnlocalizedName() + "_" + this.name().toLowerCase() + ".name";
return "item.upgrade_" + this.name().toLowerCase();
}
return "chisel.autochisel.upgrade.disabled";
}
public String getLocalizedName() {
String ret = StatCollector.translateToLocal(getUnlocalizedName());
String ret = StatCollector.translateToLocal("autochisel.slot." + this.name().toLowerCase() + ".tooltip");
if (!Features.AUTO_CHISEL_UPGRADES.enabled()) {
ret = EnumChatFormatting.RED.toString().concat(ret);
}