fix: typo

This commit is contained in:
əlemi 2023-11-13 04:40:59 +01:00
parent cf69868863
commit 939a0f7a40
Signed by: alemi
GPG key ID: A4895B84D311642C
2 changed files with 6 additions and 6 deletions

View file

@ -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
}

View file

@ -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) {