mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 16:49:07 +00:00
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)
This commit is contained in:
@@ -1806,7 +1806,7 @@ public class ItemAssistant {
|
|||||||
return false;
|
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);
|
c.getPacketSender().sendMessage("You don't have a bank open! Report this ID to developers: " + c.lastMainFrameInterface);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -2093,7 +2093,7 @@ public class ItemAssistant {
|
|||||||
|
|
||||||
public void fromBank(int itemID, int fromSlot, int amount) {
|
public void fromBank(int itemID, int fromSlot, int amount) {
|
||||||
boolean cantWithdrawCuzMaxStack = false;
|
boolean cantWithdrawCuzMaxStack = false;
|
||||||
if (c.lastMainFrameInterface != MainFrameIDs.BANK)
|
if (!(c.lastMainFrameInterface == MainFrameIDs.BANK || c.inBankArea()))
|
||||||
{
|
{
|
||||||
c.getPacketSender().sendMessage("Your bank isn't open!");
|
c.getPacketSender().sendMessage("Your bank isn't open!");
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user