From 2460140e06d68ef14b884a4cdb07de1d5042cc47 Mon Sep 17 00:00:00 2001 From: lordIcocain Date: Fri, 27 Dec 2024 04:40:47 +0200 Subject: [PATCH 1/3] Another commit --- .../client/gui/implementations/GuiPatternTermEx.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/appeng/client/gui/implementations/GuiPatternTermEx.java b/src/main/java/appeng/client/gui/implementations/GuiPatternTermEx.java index 24ef87f5a84..cfc01da766a 100644 --- a/src/main/java/appeng/client/gui/implementations/GuiPatternTermEx.java +++ b/src/main/java/appeng/client/gui/implementations/GuiPatternTermEx.java @@ -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 From e1c117eaab81a8d370d6809233722a870f1b39f2 Mon Sep 17 00:00:00 2001 From: lordIcocain Date: Fri, 27 Dec 2024 10:40:20 +0200 Subject: [PATCH 2/3] gui_look --- .../appeng/client/gui/implementations/GuiPatternMulti.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/appeng/client/gui/implementations/GuiPatternMulti.java b/src/main/java/appeng/client/gui/implementations/GuiPatternMulti.java index 8b026494b27..b4e7e4c663a 100644 --- a/src/main/java/appeng/client/gui/implementations/GuiPatternMulti.java +++ b/src/main/java/appeng/client/gui/implementations/GuiPatternMulti.java @@ -1,5 +1,6 @@ package appeng.client.gui.implementations; +import cpw.mods.fml.common.Loader; import net.minecraft.client.gui.GuiButton; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.item.ItemStack; @@ -43,7 +44,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); } From c748abd0afffd2f97a46d834788033749a10ccaa Mon Sep 17 00:00:00 2001 From: lordIcocain Date: Fri, 27 Dec 2024 10:56:44 +0200 Subject: [PATCH 3/3] spotless --- .../java/appeng/client/gui/implementations/GuiPatternMulti.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main/java/appeng/client/gui/implementations/GuiPatternMulti.java b/src/main/java/appeng/client/gui/implementations/GuiPatternMulti.java index b4e7e4c663a..0bd63ab20ba 100644 --- a/src/main/java/appeng/client/gui/implementations/GuiPatternMulti.java +++ b/src/main/java/appeng/client/gui/implementations/GuiPatternMulti.java @@ -1,6 +1,5 @@ package appeng.client.gui.implementations; -import cpw.mods.fml.common.Loader; import net.minecraft.client.gui.GuiButton; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.item.ItemStack;