Skip to content

Commit

Permalink
Stop middle click on storage guis
Browse files Browse the repository at this point in the history
  • Loading branch information
Sychic committed Apr 23, 2021
1 parent e5e8dca commit 24265b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ 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", "Anvil")) return;
if (StringUtils.startsWithAny(SBInfo.getInstance().lastOpenContainerName, "Wardrobe", "Drill Anvil", "Anvil", "Storage", "Ender Chest")) return;
if (SBInfo.getInstance().lastOpenContainerName.contains("Backpack")) return;
if (event.slot.inventory == mc.thePlayer.inventory || GuiScreen.isCtrlKeyDown()) return;

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

0 comments on commit 24265b6

Please sign in to comment.