Skip to content

Commit

Permalink
Add item bankable checks to the second TryDeposit method (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheshire92 committed May 13, 2021
1 parent c54f508 commit a412c40
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Intersect.Server/Entities/BankInterface.cs
Expand Up @@ -232,6 +232,12 @@ public bool TryDepositItem(Item item, bool sendUpdate = true)

if (item.ItemId != Guid.Empty)
{
if (!itemBase.CanBank)
{
PacketSender.SendChatMsg(mPlayer, Strings.Items.nobank, ChatMessageType.Bank, CustomColors.Items.Bound);
return false;
}

lock (mLock)
{
// Find a spot in the bank for it!
Expand Down

0 comments on commit a412c40

Please sign in to comment.