fix: typo
This commit is contained in:
parent
cf69868863
commit
939a0f7a40
2 changed files with 6 additions and 6 deletions
|
@ -62,7 +62,7 @@ public class ContainerCleaner extends AbstractModule {
|
||||||
ContainerScreen<?> screen = (ContainerScreen<?>) MC.screen;
|
ContainerScreen<?> screen = (ContainerScreen<?>) MC.screen;
|
||||||
for (Slot slot : screen.getMenu().slots) {
|
for (Slot slot : screen.getMenu().slots) {
|
||||||
if (this.blacklist.get().contains(Item.getId(slot.getItem().getItem()))) {
|
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();
|
this.counter = this.cooldown.get();
|
||||||
if (this.limit.get()) return; // only throw one item per tick
|
if (this.limit.get()) return; // only throw one item per tick
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,12 +92,12 @@ public class Inventory implements ICommons {
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void clickSLot(Slot slot, ClickType click) { clickSlot(0, 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, button, click); }
|
public static void clickSlot(Slot slot, int button, ClickType click) { clickSlot(0, slot.index, button, click); }
|
||||||
public static void clickSLot(int container, Slot slot, ClickType click) { clickSlot(container, slot, 0, 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) {
|
public static void clickSlot(int container, int slot_index, int button, ClickType click) {
|
||||||
MC.gameMode.handleInventoryMouseClick(container, slot.index, button, click, MC.player);
|
MC.gameMode.handleInventoryMouseClick(container, slot_index, button, click, MC.player);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean matchItem(Pattern pattern, ItemStack stack) {
|
public static boolean matchItem(Pattern pattern, ItemStack stack) {
|
||||||
|
|
Loading…
Reference in a new issue