1
0
Fork 0

fix input field buttons

This commit is contained in:
Sen 2025-07-05 14:53:22 +02:00
parent eed9ea565f
commit 7706c20bf5
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
2 changed files with 11 additions and 9 deletions

View file

@ -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;