mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-04 00:31:54 +00:00
Fix bank packet exploit + fishing guild banking (#300)
This commit is contained in:
@@ -2093,6 +2093,11 @@ public class ItemAssistant {
|
||||
|
||||
public void fromBank(int itemID, int fromSlot, int amount) {
|
||||
boolean cantWithdrawCuzMaxStack = false;
|
||||
if (c.lastMainFrameInterface != MainFrameIDs.BANK)
|
||||
{
|
||||
c.getPacketSender().sendMessage("Your bank isn't open!");
|
||||
return;
|
||||
}
|
||||
if (amount > 0) {
|
||||
if (c.bankItems[fromSlot] > 0) {
|
||||
if (c.getItemAssistant().playerHasItem(itemID))
|
||||
|
||||
Reference in New Issue
Block a user