Skip to content

Commit 9784965

Browse files
committed
Remove method 'getUnlocalizedNameInefficiently'
Because getUnlocalizedNameInefficiently will call getTranslationKey in super class. The description will be added twice.
1 parent 768de73 commit 9784965

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/main/java/hellfirepvp/modularmachinery/common/item/ItemBlockCustomName.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ public int getMetadata(int damage) {
3434
return damage;
3535
}
3636

37-
@Nonnull
38-
@Override
39-
public String getUnlocalizedNameInefficiently(@Nonnull ItemStack stack) {
40-
Block block = getBlock();
41-
if (block instanceof BlockCustomName) {
42-
String identifier = ((BlockCustomName) block).getIdentifierForMeta(stack.getItemDamage());
43-
return super.getUnlocalizedNameInefficiently(stack) + "." + identifier;
44-
}
45-
return super.getUnlocalizedNameInefficiently(stack);
46-
}
4737
@Nonnull
4838
@Override
4939
public String getTranslationKey(@Nonnull ItemStack stack)

0 commit comments

Comments
 (0)