diff --git a/java/src/game/Game.java b/java/src/game/Game.java index 4335f79..d87d8a2 100755 --- a/java/src/game/Game.java +++ b/java/src/game/Game.java @@ -68,6 +68,7 @@ import game.gui.GuiMenu; import game.gui.Style; import game.gui.container.GuiContainer; import game.gui.container.GuiInventory; +import game.gui.element.Textbox; import game.init.BlockRegistry; import game.init.Config; import game.init.EntityRegistry; @@ -933,7 +934,7 @@ public class Game implements IThreadListener { } if(this.open != null) this.open.render(); - if(Bind.INFO.isDown()) + if(Bind.INFO.isDown() && (this.open == null || !(this.open.selected instanceof Textbox))) this.drawInfo(); if(this.hudOverlay && !(this.open instanceof GuiConsole)) this.drawOverlay(); @@ -2389,6 +2390,8 @@ public class Game implements IThreadListener { this.registerDebug(Keysym.E, "Gegenstands-Cheat-MenĂ¼ umschalten", new DebugRunner() { public void execute(Keysym key) { Log.CONSOLE.user("Cheat-MenĂ¼: %s", (Game.this.itemCheat ^= true) ? "an" : "aus"); + if(Game.this.open instanceof GuiContainer) + Game.this.open.init(); } }); this.registerDebug(Keysym.L, "Maximale Helligkeit umschalten", new DebugRunner() { diff --git a/java/src/game/gui/world/GuiWorlds.java b/java/src/game/gui/world/GuiWorlds.java index 3a6297c..ba13c72 100755 --- a/java/src/game/gui/world/GuiWorlds.java +++ b/java/src/game/gui/world/GuiWorlds.java @@ -152,6 +152,7 @@ public class GuiWorlds extends GuiList implements ActButton. public void init(int width, int height) { + super.init(width, height); this.starting = false; this.setDimensions(width, height, 48, height - 64); boolean create = true;