From 62a22f885707aa301089c0e1d14319090e814889 Mon Sep 17 00:00:00 2001 From: Daniel Ginovker Date: Tue, 17 Dec 2019 15:19:39 -0500 Subject: [PATCH] Add bank area checks back since previously you could open a bank, and as long as you didn't open another interface you could abuse it (#301) --- .../src/com/rebotted/game/items/ItemAssistant.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/2006Redone Server/src/com/rebotted/game/items/ItemAssistant.java b/2006Redone Server/src/com/rebotted/game/items/ItemAssistant.java index a8fed93f..d6015ada 100644 --- a/2006Redone Server/src/com/rebotted/game/items/ItemAssistant.java +++ b/2006Redone Server/src/com/rebotted/game/items/ItemAssistant.java @@ -1806,7 +1806,7 @@ public class ItemAssistant { return false; } - if (!(c.lastMainFrameInterface == MainFrameIDs.DEPOSIT_BOX || c.lastMainFrameInterface == MainFrameIDs.BANK)) { //Packet exploit prevention + if (!(c.lastMainFrameInterface == MainFrameIDs.DEPOSIT_BOX || c.lastMainFrameInterface == MainFrameIDs.BANK || c.inBankArea())) { //Packet exploit prevention c.getPacketSender().sendMessage("You don't have a bank open! Report this ID to developers: " + c.lastMainFrameInterface); return false; } @@ -2093,7 +2093,7 @@ public class ItemAssistant { public void fromBank(int itemID, int fromSlot, int amount) { boolean cantWithdrawCuzMaxStack = false; - if (c.lastMainFrameInterface != MainFrameIDs.BANK) + if (!(c.lastMainFrameInterface == MainFrameIDs.BANK || c.inBankArea())) { c.getPacketSender().sendMessage("Your bank isn't open!"); return;