fix input field buttons
This commit is contained in:
parent
eed9ea565f
commit
7706c20bf5
2 changed files with 11 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue