mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 04:09:40 +00:00
Fixed the inventory key not closing the Lexica Botania guis. Closes #115
This commit is contained in:
1 parent
3c7ef62187
commit
911dead52f
3 files changed
+12
-2
No files matched your search
@@ -229,5 +229,15 @@ public class GuiLexicon extends GuiScreen {
|
||||
buttonList.add(new GuiButtonBookmark(BOOKMARK_START + i, left + 138, top + 18 + 14 * i, gui == null ? this : gui, gui == null ? "+" : gui.getTitle()));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void keyTyped(char par1, int par2) {
|
||||
if(mc.gameSettings.keyBindInventory.getKeyCode() == par2) {
|
||||
mc.displayGuiScreen(null);
|
||||
mc.setIngameFocus();
|
||||
}
|
||||
|
||||
super.keyTyped(par1, par2);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -201,7 +201,7 @@ public class GuiLexiconEntry extends GuiLexicon implements IGuiLexiconEntry, IPa
|
||||
@Override
|
||||
protected void keyTyped(char par1, int par2) {
|
||||
if(par2 == 203 || par2 == 200 || par2 == 201) // Left, Up, Page Up
|
||||
prevPage();
|
||||
prevPage();
|
||||
else if(par2 == 205 || par2 == 208 || par2 == 209) // Right, Down Page Down
|
||||
nextPage();
|
||||
else if(par2 == 14) // Backspace
|
||||
|
||||
@@ -172,7 +172,7 @@ public class GuiLexiconIndex extends GuiLexicon implements IParented {
|
||||
@Override
|
||||
protected void keyTyped(char par1, int par2) {
|
||||
if(par2 == 203 || par2 == 200 || par2 == 201) // Left, Up, Page Up
|
||||
prevPage();
|
||||
prevPage();
|
||||
else if(par2 == 205 || par2 == 208 || par2 == 209) // Right, Down Page Down
|
||||
nextPage();
|
||||
else if(par2 == 14) // Backspace
|
||||
|
||||
Reference in new issue
Block a user