Skip to content

Commit c52d46f

Browse files
Fix crash with WR-CBE
1 parent 2a7761e commit c52d46f

File tree

3 files changed

+22
-4
lines changed

3 files changed

+22
-4
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ enable_lwjglx = true
1919

2020
# Mod Information
2121
# HIGHLY RECOMMEND complying with SemVer for mod_version: https://semver.org/
22-
mod_version = 3.3.4
22+
mod_version = 3.3.5
2323
root_package = codechicken.lib
2424
mod_id = codechickenlib
2525
mod_name = CodeChickenLib CRE

src/main/java/codechicken/lib/Reference.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ public class Reference {
77

88
public static final String MOD_ID = "codechickenlib";
99
public static final String MOD_NAME = "CodeChickenLib CRE";
10-
public static final String VERSION = "3.3.4";
10+
public static final String VERSION = "3.3.5";
1111

1212
}

src/main/java/codechicken/lib/item/ItemMultiType.java

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,20 @@ public ItemMultiType(CreativeTabs tab, String registryName) {
3838
}
3939

4040
@Override
41-
public ItemMultiType setTranslationKey(String unlocalizedName) {
42-
super.setTranslationKey(unlocalizedName);
41+
public ItemMultiType setTranslationKey(String translationKey) {
42+
super.setTranslationKey(translationKey);
4343
return this;
4444
}
4545

46+
/**
47+
* Added for compatibility
48+
* @deprecated Use setTranslationKey.
49+
*/
50+
@Deprecated
51+
public ItemMultiType setUnlocalizedName(String unlocalizedName) {
52+
return setTranslationKey(unlocalizedName);
53+
}
54+
4655
@Nonnull
4756
public ItemStack registerItem(int meta, String name) {
4857
if (names.containsKey(meta)) {
@@ -109,4 +118,13 @@ public String getTranslationKey(ItemStack stack) {
109118
return getTranslationKey() + "." + names.get(meta);
110119
}
111120

121+
/**
122+
* Added for compatibility
123+
* @deprecated Use getTranslationKey.
124+
*/
125+
@Deprecated
126+
public String getUnlocalizedName(ItemStack stack) {
127+
return getTranslationKey(stack);
128+
}
129+
112130
}

0 commit comments

Comments
 (0)