Example: 2147M in inventory and 100m in bank. If I withdraw 20m from bank it will delete the 20m from the bank and the 2147M would stay the same in my inventory.
I was Pmed this fix, add it in right under fromBank:
Code:
if (c.takeAsNote && Item.itemIsNote[c.bankItems[fromSlot]]) {
if (Item.itemStackable[c.bankItems[fromSlot] ]) {
long l = c.getItems().getItemAmount(c.bankItems[fromSlot]);
long k = (l + amount);
if(k > 2147483647) {
c.sendMessage("The max your inventory can hold of one item is 2,147,483,647.");
return;
}
}
}
if (!c.takeAsNote) {
if (Item.itemStackable[c.bankItems[fromSlot] -1]) {
long l = c.getItems().getItemAmount(c.bankItems[fromSlot] -1);
long k = (l + amount);
if(k > 2147483647) {
c.sendMessage("The max your inventory can hold of one item is 2,147,483,647.");
return;
}
}
}
Thanks to Yvne for PM fix.