Skip to content

Commit

Permalink
Merge remote-tracking branch 'lordIcocain/fix_rclick_divide_on_proces…
Browse files Browse the repository at this point in the history
…sing_pattern_terminal' into dev
  • Loading branch information
Dream-Master committed Dec 27, 2024
2 parents fa54fb1 + e81a034 commit a057182
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void initGui() {
this.guiTop + 53,
Settings.ACTIONS,
ActionItems.MULTIPLY));

this.amountTextField.xPosition = this.guiLeft + 50;
this.amountTextField.setText(String.valueOf(DEFAULT_VALUE));
this.amountTextField.setSelectionPos(0);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ protected void actionPerformed(final GuiButton btn) {
"PatternTerminalEx.BeSubstitute",
this.beSubstitutionsEnabledBtn == btn ? SUBSITUTION_DISABLE : SUBSITUTION_ENABLE));
} else if (doubleBtn == btn) {
NetworkHandler.instance.sendToServer(
new PacketValueConfig(
"PatternTerminalEx.Double",
Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) ? "1" : "0"));
int val = Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) ? 1 : 0;
if (Mouse.isButtonDown(1)) val |= 0b10;
NetworkHandler.instance
.sendToServer(new PacketValueConfig("PatternTerminalEx.Double", String.valueOf(val)));
}
} catch (final IOException e) {
// TODO Auto-generated catch block
Expand Down

0 comments on commit a057182

Please sign in to comment.