From 49893543a3286b12d09f224a651f24005e43f13e Mon Sep 17 00:00:00 2001 From: matthias-luger <58751503+matthias-luger@users.noreply.github.com> Date: Thu, 29 Jun 2023 20:37:06 +0200 Subject: use left click for click action (#103) --- src/main/java/de/torui/coflsky/gui/bingui/BinGuiCurrent.java | 4 ++-- src/main/java/de/torui/coflsky/gui/tfm/ButtonRemapper.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/de') diff --git a/src/main/java/de/torui/coflsky/gui/bingui/BinGuiCurrent.java b/src/main/java/de/torui/coflsky/gui/bingui/BinGuiCurrent.java index d2cb0fd..03892ec 100644 --- a/src/main/java/de/torui/coflsky/gui/bingui/BinGuiCurrent.java +++ b/src/main/java/de/torui/coflsky/gui/bingui/BinGuiCurrent.java @@ -145,12 +145,12 @@ public class BinGuiCurrent extends GuiChest { Minecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText("[§1C§6oflnet§f]§7: §cBed is not purchasable yet.")); buyState = BuyState.INIT; } else { - mc.playerController.windowClick(this.chestGui.inventorySlots.windowId, 31, 2, 3, mc.thePlayer); + mc.playerController.windowClick(this.chestGui.inventorySlots.windowId, 31, 0, 0, mc.thePlayer); wasMouseDown = false; buyState = BuyState.CONFIRM; } } else if (guiName.equalsIgnoreCase("Confirm Purchase") && buyState == BuyState.BUYING) { - mc.playerController.windowClick(this.chestGui.inventorySlots.windowId, 11, 2, 3, mc.thePlayer); + mc.playerController.windowClick(this.chestGui.inventorySlots.windowId, 11, 0, 0, mc.thePlayer); resetGUI(); } } diff --git a/src/main/java/de/torui/coflsky/gui/tfm/ButtonRemapper.java b/src/main/java/de/torui/coflsky/gui/tfm/ButtonRemapper.java index 2d48434..7d64c64 100644 --- a/src/main/java/de/torui/coflsky/gui/tfm/ButtonRemapper.java +++ b/src/main/java/de/torui/coflsky/gui/tfm/ButtonRemapper.java @@ -264,7 +264,7 @@ public class ButtonRemapper { private void clickSlot(int windowId, int slot) { Minecraft.getMinecraft().playerController.windowClick(windowId, - slot, 2, 3, Minecraft.getMinecraft().thePlayer); + slot, 0, 0, Minecraft.getMinecraft().thePlayer); } private void handleBuyClick(GuiChest currentScreen, GuiScreenEvent.MouseInputEvent.Pre event) { -- cgit From 6bc4461a163f32bb5059a75e1afaabd55e026ad9 Mon Sep 17 00:00:00 2001 From: Äkwav Date: Wed, 30 Aug 2023 19:35:40 +0200 Subject: remove wrong protocol connection attempt --- src/main/java/de/torui/coflsky/CoflSky.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main/java/de') diff --git a/src/main/java/de/torui/coflsky/CoflSky.java b/src/main/java/de/torui/coflsky/CoflSky.java index eb26d21..8389676 100644 --- a/src/main/java/de/torui/coflsky/CoflSky.java +++ b/src/main/java/de/torui/coflsky/CoflSky.java @@ -40,10 +40,9 @@ public class CoflSky { public static LocalConfig config; public static final String[] webSocketURIPrefix = new String[]{ - "wss://sky.coflnet.com/modsocket", - "wss://sky-mod.coflnet.com/modsocket", - "ws://sky.coflnet.com/modsocket", - "ws://sky-mod.coflnet.com/modsocket", + "wss://sky.coflnet.com/modsocket", + // fallback for old java versions not supporting new tls certificates + "ws://sky-mod.coflnet.com/modsocket", }; public static String CommandUri = Config.BaseUrl + "/api/mod/commands"; -- cgit