Fix #729 Leaves name doesn't show properly

This commit is contained in:
mezz committed 2015-06-19 20:38:57 -07:00
1 parent 699fb6fc37
commit adc3b438c6
1 file changed
+2 -1
@@ -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);
}