Skip to content

Commit

Permalink
Fix meat localization
Browse files Browse the repository at this point in the history
  • Loading branch information
falkreon committed Dec 22, 2017
1 parent e87c9fc commit f462dc5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<EnumEdibleMeat> VARIANT = PropertyEnum.<EnumEdibleMeat>create("variant", EnumEdibleMeat.class);
public static final PropertyBool COOKED = PropertyBool.create("cooked");
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit f462dc5

Please sign in to comment.