We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e022619 + 9784965 commit aa5c6deCopy full SHA for aa5c6de
src/main/java/hellfirepvp/modularmachinery/common/item/ItemBlockCustomName.java
@@ -36,12 +36,13 @@ public int getMetadata(int damage) {
36
37
@Nonnull
38
@Override
39
- public String getUnlocalizedNameInefficiently(@Nonnull ItemStack stack) {
+ public String getTranslationKey(@Nonnull ItemStack stack)
40
+ {
41
Block block = getBlock();
42
if (block instanceof BlockCustomName) {
43
String identifier = ((BlockCustomName) block).getIdentifierForMeta(stack.getItemDamage());
- return super.getUnlocalizedNameInefficiently(stack) + "." + identifier;
44
+ return super.getTranslationKey(stack) + "." + identifier;
45
}
- return super.getUnlocalizedNameInefficiently(stack);
46
+ return super.getTranslationKey(stack);
47
48
0 commit comments