mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
Fix #729 Leaves name doesn't show properly
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user