From 939a0f7a40f9c9c4864e7b39a039fbf56c7333ac Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 13 Nov 2023 04:40:59 +0100 Subject: fix: typo --- src/main/java/ftbsc/bscv/modules/self/ContainerCleaner.java | 2 +- src/main/java/ftbsc/bscv/tools/Inventory.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/ftbsc/bscv/modules/self/ContainerCleaner.java b/src/main/java/ftbsc/bscv/modules/self/ContainerCleaner.java index 02af2f2..059c4bb 100644 --- a/src/main/java/ftbsc/bscv/modules/self/ContainerCleaner.java +++ b/src/main/java/ftbsc/bscv/modules/self/ContainerCleaner.java @@ -62,7 +62,7 @@ public class ContainerCleaner extends AbstractModule { ContainerScreen screen = (ContainerScreen) MC.screen; for (Slot slot : screen.getMenu().slots) { if (this.blacklist.get().contains(Item.getId(slot.getItem().getItem()))) { - Inventory.clickSLot(screen.getMenu().containerId, slot, ClickType.THROW); + Inventory.clickSlot(screen.getMenu().containerId, slot.index, ClickType.THROW); this.counter = this.cooldown.get(); if (this.limit.get()) return; // only throw one item per tick } diff --git a/src/main/java/ftbsc/bscv/tools/Inventory.java b/src/main/java/ftbsc/bscv/tools/Inventory.java index f044be8..ec36e89 100644 --- a/src/main/java/ftbsc/bscv/tools/Inventory.java +++ b/src/main/java/ftbsc/bscv/tools/Inventory.java @@ -92,12 +92,12 @@ public class Inventory implements ICommons { return out; } - public static void clickSLot(Slot slot, ClickType click) { clickSlot(0, slot, 0, click); } - public static void clickSLot(Slot slot, int button, ClickType click) { clickSlot(0, slot, button, click); } - public static void clickSLot(int container, Slot slot, ClickType click) { clickSlot(container, slot, 0, click); } + public static void clickSlot(int slot_index, ClickType click) { clickSlot(0, slot_index, 0, click); } + public static void clickSlot(Slot slot, int button, ClickType click) { clickSlot(0, slot.index, button, click); } + public static void clickSlot(int container, int slot_index, ClickType click) { clickSlot(container, slot_index, 0, click); } - public static void clickSlot(int container, Slot slot, int button, ClickType click) { - MC.gameMode.handleInventoryMouseClick(container, slot.index, button, click, MC.player); + public static void clickSlot(int container, int slot_index, int button, ClickType click) { + MC.gameMode.handleInventoryMouseClick(container, slot_index, button, click, MC.player); } public static boolean matchItem(Pattern pattern, ItemStack stack) { -- cgit v1.2.3-56-ga3b1