Change the Lexicon gui code to pull from the stack used to open the book. Closes #518

This commit is contained in:
Lizbeth Rika committed 2015-02-02 18:27:00 +00:00
1 parent 97d4fd9b3d
commit 96e676c2c7
5 files changed
+14 -4

No files matched your search

@@ -37,9 +37,6 @@ public class GuiHandler implements IGuiHandler {
switch(ID) {
case LibGuiIDs.LEXICON : {
GuiLexicon lex = GuiLexicon.currentOpenLexicon;
GuiLexicon.stackUsed = player.getCurrentEquippedItem();
if(GuiLexicon.stackUsed == null || !(GuiLexicon.stackUsed.getItem() instanceof ILexicon))
return null;
return lex;
}
case LibGuiIDs.CRAFTING_HALO : {