diff --git a/client/src/main/java/client/Client.java b/client/src/main/java/client/Client.java index a793d461..531ef5f3 100755 --- a/client/src/main/java/client/Client.java +++ b/client/src/main/java/client/Client.java @@ -725,14 +725,16 @@ public class Client implements IThreadListener { public void inputGui() { if (this.open != null) { - if(Bind.THROW.isPressed()) - this.open.dropItem(); - else if(Bind.RENAME.isPressed()) - this.open.renameItem(); - for(int z = 0; z < this.keyBindsHotbar.length; z++) { - if(this.keyBindsHotbar[z].isPressed()) - this.open.useHotbar(z); - } + if(!(this.open.selected instanceof client.gui.element.Field || this.open.selected instanceof Area)) { + if(Bind.THROW.isPressed()) + this.open.dropItem(); + else if(Bind.RENAME.isPressed()) + this.open.renameItem(); + for(int z = 0; z < this.keyBindsHotbar.length; z++) { + if(this.keyBindsHotbar[z].isPressed()) + this.open.useHotbar(z); + } + } this.primary = this.secondary = this.tertiary = this.quarternary = false; this.zooming = false; diff --git a/client/src/main/java/client/gui/container/GuiContainer.java b/client/src/main/java/client/gui/container/GuiContainer.java index f99d284c..9491fb24 100755 --- a/client/src/main/java/client/gui/container/GuiContainer.java +++ b/client/src/main/java/client/gui/container/GuiContainer.java @@ -178,7 +178,7 @@ public abstract class GuiContainer extends Gui } if(this.gm.itemCheat) { this.cheatLabel = this.add(new Label(this.cheatX, this.cheatY, this.cheatWidth * 18, "", true)); - this.cheatDesc = this.add(new MultiLabel(this.cheatX, this.cheatY + this.cheatHeight * 18 + 20 * ((CheatTab.values().length + (this.cheatWidth - 1)) / this.cheatWidth) + 4 + 18, this.cheatWidth * 18, 60, "Vorsicht: Schummeln wird\nmit Keule bestraft!!\n(Halte Strg beim Klick\nfür vollen Stapel)")); + this.cheatDesc = this.add(new MultiLabel(this.cheatX, this.cheatY + this.cheatHeight * 18 + 20 * ((CheatTab.values().length + (this.cheatWidth - 1)) / this.cheatWidth) + 4 + 18, this.cheatWidth * 18, 60, "Vorsicht: Schummeln\nwird mit Keule bestraft!!\n(Halte Strg beim Klick\nfür vollen Stapel)")); this.cheatSearch = this.add(new Field(this.cheatX, this.cheatY + this.cheatHeight * 18 + 20 * ((CheatTab.values().length + (this.cheatWidth - 1)) / this.cheatWidth) + 4, this.cheatWidth * 18, 0, 128, null, "")); this.cheatLast = ""; for(CheatTab tab : CheatTab.values()) {