mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-26 06:43:05 +00:00
Fix item and block localization. This is a world breaking change!
This commit is contained in:
1 parent
5fcc76a2fa
commit
83789ae8f7
78 files changed
+1119
-1120
No files matched your search
@@ -60,11 +60,11 @@ public class ItemStamps extends ItemOverlay implements IStamps {
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getItemStackDisplayName(ItemStack itemstack) {
|
||||
public String getUnlocalizedName(ItemStack itemstack) {
|
||||
if (itemstack.getItemDamage() < 0 || itemstack.getItemDamage() >= stampInfo.length)
|
||||
return null;
|
||||
|
||||
return StringUtil.localize(getUnlocalizedName()) + " " + stampInfo[itemstack.getItemDamage()].name;
|
||||
return super.getUnlocalizedName(itemstack) + "." + stampInfo[itemstack.getItemDamage()].name;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user