mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Change the Lexicon gui code to pull from the stack used to open the book. Closes #518
This commit is contained in:
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 : {
|
||||
|
||||
Reference in new issue
Block a user