From adc3b438c6915b60ab5f36ce317c9c4a044e209f Mon Sep 17 00:00:00 2001 From: mezz Date: Fri, 19 Jun 2015 20:38:32 -0700 Subject: [PATCH] Fix #729 Leaves name doesn't show properly --- .../java/forestry/arboriculture/items/ItemLeavesBlock.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/forestry/arboriculture/items/ItemLeavesBlock.java b/src/main/java/forestry/arboriculture/items/ItemLeavesBlock.java index 057cbf327..dd02cc50f 100644 --- a/src/main/java/forestry/arboriculture/items/ItemLeavesBlock.java +++ b/src/main/java/forestry/arboriculture/items/ItemLeavesBlock.java @@ -3,6 +3,7 @@ package forestry.arboriculture.items; import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; +import net.minecraft.util.StatCollector; import net.minecraft.world.World; import forestry.arboriculture.gadgets.TileLeaves; @@ -35,7 +36,7 @@ public class ItemLeavesBlock extends ItemForestryBlock { } String grammar = StringUtil.localize("trees.grammar.leaves"); - String localizedName = StringUtil.localize(unlocalizedName); + String localizedName = StatCollector.translateToLocal(unlocalizedName); return grammar.replaceAll("%SPECIES", localizedName).replaceAll("%TYPE", type); }