Removed ability to close booklet with inventory key - It made John Cena unhappy

This commit is contained in:
Ellpeck 2015-12-25 00:38:16 +01:00
parent ef20b12d66
commit 4340881896

View file

@ -159,7 +159,7 @@ public class GuiBooklet extends GuiScreen{
@Override @Override
public void keyTyped(char theChar, int key){ public void keyTyped(char theChar, int key){
if(key == Keyboard.KEY_ESCAPE || (!this.searchField.isFocused() && key == Minecraft.getMinecraft().gameSettings.keyBindInventory.getKeyCode())){ if(key == Keyboard.KEY_ESCAPE){
if(this.parentScreen != null){ if(this.parentScreen != null){
this.mc.displayGuiScreen(this.parentScreen); this.mc.displayGuiScreen(this.parentScreen);
} }