aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author alemi <me@alemi.dev>2023-11-13 04:40:59 +0100
committer alemi <me@alemi.dev>2023-11-13 04:40:59 +0100
commit939a0f7a40f9c9c4864e7b39a039fbf56c7333ac (patch)
tree74d76b8947a682acef4d5517e98ce3c3c0daf587 /src
parentcf6986886390e1aba113fbd3f4a5ce197345cd41 (diff)
fix: typo
Diffstat (limited to 'src')
-rw-r--r--src/main/java/ftbsc/bscv/modules/self/ContainerCleaner.java2
-rw-r--r--src/main/java/ftbsc/bscv/tools/Inventory.java10
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) {