Skip to content

Commit

Permalink
Fix smelting task type exploit
Browse files Browse the repository at this point in the history
  • Loading branch information
Krakenied committed Dec 23, 2024
1 parent 0ff876d commit 8897026
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void onInventoryClick(InventoryClickEvent event) {
if (!(event.getInventory() instanceof FurnaceInventory) || event.getRawSlot() != 2
|| (event.getCurrentItem() == null || event.getCurrentItem().getType() == Material.AIR)
|| event.getAction() == InventoryAction.NOTHING
|| event.getAction() == InventoryAction.COLLECT_TO_CURSOR && event.getClick() == ClickType.DOUBLE_CLICK && (event.getCursor() != null && event.getCursor().getType() != Material.AIR) && ((event.getCursor().getAmount() + event.getCurrentItem().getAmount() > event.getCursor().getMaxStackSize()) || event.getCursor().getType() != event.getCurrentItem().getType()) // does not apply to crafting tables lol
|| event.getAction() == InventoryAction.COLLECT_TO_CURSOR && event.getClick() == ClickType.DOUBLE_CLICK && (event.getCursor() != null && event.getCursor().getType() != Material.AIR) && ((event.getCursor().getAmount() + event.getCurrentItem().getAmount() > event.getCursor().getMaxStackSize()) || !event.getCursor().isSimilar(event.getCurrentItem())) // https://github.com/LMBishop/Quests/issues/754 (does not apply to crafting items lol)
|| event.getAction() == InventoryAction.HOTBAR_MOVE_AND_READD && event.getClick() == ClickType.NUMBER_KEY && !plugin.getVersionSpecificHandler().isHotbarMoveAndReaddSupported() // https://discord.com/channels/211910297810632704/510553623022010371/1011035743331819550
|| event.getAction() == InventoryAction.DROP_ONE_SLOT && event.getClick() == ClickType.DROP && (event.getCursor() != null && event.getCursor().getType() != Material.AIR) // https://github.com/LMBishop/Quests/issues/430
|| event.getAction() == InventoryAction.DROP_ALL_SLOT && event.getClick() == ClickType.CONTROL_DROP && (event.getCursor() != null && event.getCursor().getType() != Material.AIR) // https://github.com/LMBishop/Quests/issues/430
Expand Down

0 comments on commit 8897026

Please sign in to comment.