diff --git a/src/main/java/vazkii/botania/client/gui/lexicon/GuiLexiconEntry.java b/src/main/java/vazkii/botania/client/gui/lexicon/GuiLexiconEntry.java index 80eb85c29..73c54230c 100644 --- a/src/main/java/vazkii/botania/client/gui/lexicon/GuiLexiconEntry.java +++ b/src/main/java/vazkii/botania/client/gui/lexicon/GuiLexiconEntry.java @@ -2,10 +2,10 @@ * This class was created by . It's distributed as * part of the Botania Mod. Get the Source Code in github: * https://github.com/Vazkii/Botania - * + * * Botania is Open Source and distributed under the * Botania License: http://botaniamod.net/license.php - * + * * File Created @ [Jan 14, 2014, 6:47:06 PM (GMT)] */ package vazkii.botania.client.gui.lexicon; @@ -161,7 +161,7 @@ public class GuiLexiconEntry extends GuiLexicon implements IGuiLexiconEntry, IPa break; case 3 : Minecraft mc = Minecraft.getMinecraft(); - String cmd = "/botania-share " + entry.unlocalizedName; + String cmd = "/botania-share " + entry.getUnlocalizedName(); mc.ingameGUI.getChatGUI().addToSentMessages(cmd); mc.thePlayer.sendChatMessage(cmd); diff --git a/src/main/java/vazkii/botania/common/core/command/CommandShare.java b/src/main/java/vazkii/botania/common/core/command/CommandShare.java index f77a03858..ef9001966 100644 --- a/src/main/java/vazkii/botania/common/core/command/CommandShare.java +++ b/src/main/java/vazkii/botania/common/core/command/CommandShare.java @@ -2,10 +2,10 @@ * This class was created by . It's distributed as * part of the Botania Mod. Get the Source Code in github: * https://github.com/Vazkii/Botania - * + * * Botania is Open Source and distributed under the * Botania License: http://botaniamod.net/license.php - * + * * File Created @ [Sep 23, 2014, 8:06:49 PM (GMT)] */ package vazkii.botania.common.core.command; @@ -34,7 +34,7 @@ public class CommandShare extends CommandBase { String json = StatCollector.translateToLocal("botaniamisc.shareMsg"); json = json.replaceAll("%name%", sender.getCommandSenderName()); json = json.replaceAll("%entry%", args[0]); - json = json.replaceAll("%entryname%", StatCollector.translateToLocal("botania.entry." + args[0])); + json = json.replaceAll("%entryname%", StatCollector.translateToLocal(args[0])); IChatComponent component = IChatComponent.Serializer.func_150699_a(json); MinecraftServer.getServer().getConfigurationManager().sendChatMsg(component); diff --git a/src/main/java/vazkii/botania/common/item/ItemLexicon.java b/src/main/java/vazkii/botania/common/item/ItemLexicon.java index d3cc9983a..98ad09bf9 100644 --- a/src/main/java/vazkii/botania/common/item/ItemLexicon.java +++ b/src/main/java/vazkii/botania/common/item/ItemLexicon.java @@ -2,10 +2,10 @@ * This class was created by . It's distributed as * part of the Botania Mod. Get the Source Code in github: * https://github.com/Vazkii/Botania - * + * * Botania is Open Source and distributed under the * Botania License: http://botaniamod.net/license.php - * + * * File Created @ [Jan 14, 2014, 5:53:00 PM (GMT)] */ package vazkii.botania.common.item; @@ -200,7 +200,7 @@ public class ItemLexicon extends ItemMod implements ILexicon, IElvenItem { String force = getForcedPage(stack); for(LexiconEntry entry : BotaniaAPI.getAllEntries()) - if(entry.unlocalizedName.equals(force)) + if(entry.getUnlocalizedName().equals(force)) if(entry != null && ((ItemLexicon) stack.getItem()).isKnowledgeUnlocked(stack, entry.getKnowledgeType())) return entry;