mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-11 15:57:31 +00:00
fix(i18n): autochisel upgrades names
Fix code handling slots and upgrade localized names Sync locale files
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user