Skip to content

Commit

Permalink
bypass middle click on anvil
Browse files Browse the repository at this point in the history
  • Loading branch information
My-Name-Is-Jeff committed Apr 18, 2021
1 parent 50ec98b commit 6553c4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/skytils/skytilsmod/core/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class Config extends Vigilant {
@Property(
type = PropertyType.TEXT,
name = "Hypixel API Key",
description = "Your Hypixel API key, which can be obtained from /api new. Required for some features.\nSet this with /skytils setkey <key>.",
description = "Your Hypixel API key, which can be obtained from /api new. Required for some features.",
category = "General",
subcategory = "API"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public void onSlotClickLow(GuiContainerEvent.SlotClickEvent event) {
ContainerChest chest = (ContainerChest) event.container;

if (Utils.equalsOneOf(chest.getLowerChestInventory().getName(), "Chest", "Large Chest")) return;
if (StringUtils.startsWithAny(SBInfo.getInstance().lastOpenContainerName, "Wardrobe", "Drill Anvil")) return;
if (StringUtils.startsWithAny(SBInfo.getInstance().lastOpenContainerName, "Wardrobe", "Drill Anvil", "Anvil")) return;
if (event.slot.inventory == mc.thePlayer.inventory || GuiScreen.isCtrlKeyDown()) return;

ItemStack item = event.slot.getStack();
Expand Down

0 comments on commit 6553c4c

Please sign in to comment.