aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/torui/coflsky/gui/bingui
diff options
context:
space:
mode:
authormatthias-luger <58751503+matthias-luger@users.noreply.github.com>2023-06-29 20:37:06 +0200
committerGitHub <noreply@github.com>2023-06-29 20:37:06 +0200
commit49893543a3286b12d09f224a651f24005e43f13e (patch)
tree949e8b1bd49afb8ef74dcc027d74fc1e7e1dd36e /src/main/java/de/torui/coflsky/gui/bingui
parent72ba24f1d7032343b3c88f7e63abb546a4457092 (diff)
downloadCOFL-49893543a3286b12d09f224a651f24005e43f13e.tar.gz
COFL-49893543a3286b12d09f224a651f24005e43f13e.tar.bz2
COFL-49893543a3286b12d09f224a651f24005e43f13e.zip
use left click for click action (#103)
Diffstat (limited to 'src/main/java/de/torui/coflsky/gui/bingui')
-rw-r--r--src/main/java/de/torui/coflsky/gui/bingui/BinGuiCurrent.java4
1 files changed, 2 insertions, 2 deletions
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();
}
}