aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/common
diff options
context:
space:
mode:
authoriouter <62897714+iouter@users.noreply.github.com>2022-10-13 00:54:33 +0800
committerGitHub <noreply@github.com>2022-10-12 18:54:33 +0200
commit54477583bf65da771428731b381a79ded400bd87 (patch)
treedb1a185afb4d6eee388dc5edba5093c46fbe0b2e /src/main/java/gregtech/common
parent130a142be25fcdefab85d912ce401841dba59e5d (diff)
downloadGT5-Unofficial-54477583bf65da771428731b381a79ded400bd87.tar.gz
GT5-Unofficial-54477583bf65da771428731b381a79ded400bd87.tar.bz2
GT5-Unofficial-54477583bf65da771428731b381a79ded400bd87.zip
fix comb localization (#1454)
Diffstat (limited to 'src/main/java/gregtech/common')
-rw-r--r--src/main/java/gregtech/common/items/CombType.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/items/CombType.java b/src/main/java/gregtech/common/items/CombType.java
index 378ec4bdeb..8da914ddf3 100644
--- a/src/main/java/gregtech/common/items/CombType.java
+++ b/src/main/java/gregtech/common/items/CombType.java
@@ -209,6 +209,7 @@ public enum CombType {
private final int id;
private final String name;
+ private final String localizedName;
private final int[] color;
CombType(String pName, boolean show, Materials material, int chance, int... color) {
@@ -218,6 +219,8 @@ public enum CombType {
this.chance = chance;
this.showInList = show;
this.color = color;
+ this.localizedName = GT_LanguageManager.addStringLocalization(
+ "comb." + this.name, this.name.substring(0, 1).toUpperCase() + this.name.substring(1) + " Comb");
}
CombType(int id, String pName, boolean show, Materials material, int chance, int... color) {
@@ -228,6 +231,8 @@ public enum CombType {
this.chance = chance;
this.showInList = show;
this.color = color;
+ this.localizedName = GT_LanguageManager.addStringLocalization(
+ "comb." + this.name, this.name.substring(0, 1).toUpperCase() + this.name.substring(1) + " Comb");
}
public void setHidden() {
@@ -236,8 +241,7 @@ public enum CombType {
public String getName() {
- return GT_LanguageManager.addStringLocalization(
- "comb." + this.name, this.name.substring(0, 1).toUpperCase() + this.name.substring(1) + " Comb");
+ return this.localizedName;
}
public int[] getColours() {