diff --git a/src/main/java/com/elytradev/thermionics/world/block/BlockMeatEdible.java b/src/main/java/com/elytradev/thermionics/world/block/BlockMeatEdible.java index 5a3ec9e..4e57d20 100644 --- a/src/main/java/com/elytradev/thermionics/world/block/BlockMeatEdible.java +++ b/src/main/java/com/elytradev/thermionics/world/block/BlockMeatEdible.java @@ -38,6 +38,7 @@ import net.minecraft.util.text.translation.I18n; import net.minecraft.world.World; +@SuppressWarnings("deprecation") public class BlockMeatEdible extends BlockMeat implements IItemNamer { public static final PropertyEnum VARIANT = PropertyEnum.create("variant", EnumEdibleMeat.class); public static final PropertyBool COOKED = PropertyBool.create("cooked"); @@ -101,10 +102,9 @@ public String getUnlocalizedName(ItemStack stack) { EnumEdibleMeat variant = equivalentState.getValue(BlockMeatEdible.VARIANT); String cookedKey = equivalentState.getValue(BlockMeatEdible.COOKED) ? "cooked" : "raw"; - return "tile.thermionics_world.meat.edible."+variant.getName()+"."+cookedKey; + return "tile.thermionics_world.meat.edible."+variant.getName()+"."+cookedKey+".name"; } - @SuppressWarnings("deprecation") @Override public String getLocalizedName(ItemStack stack) { return I18n.translateToLocal(this.getUnlocalizedName(stack));