mirror of
https://github.com/GTNewHorizons/Binnie.git
synced 2026-11-19 11:59:11 +00:00
Add Botany Dictionary localisation
This commit is contained in:
1 parent
6df4570bca
commit
864e5e0dfc
1 file changed
+2
-1
@@ -18,6 +18,7 @@ import forestry.api.core.IModelManager;
|
||||
import binnie.botany.Botany;
|
||||
import binnie.botany.CreativeTabBotany;
|
||||
import binnie.botany.core.BotanyGUI;
|
||||
import binnie.core.util.I18N;
|
||||
|
||||
public class ItemDictionary extends Item implements IItemModelRegister {
|
||||
public ItemDictionary() {
|
||||
@@ -54,6 +55,6 @@ public class ItemDictionary extends Item implements IItemModelRegister {
|
||||
|
||||
@Override
|
||||
public String getItemStackDisplayName(final ItemStack i) {
|
||||
return (i.getItemDamage() == 0) ? "Botanist Database" : "Master Botanist Database";
|
||||
return I18N.localise("item.botany.database." + ((i.getItemDamage() == 0) ? "name" : "master.name"));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user