Skip to content

Commit 5cba827

Browse files
committed
fix guild bank not swapping for guildless user
1 parent 1d31084 commit 5cba827

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

Intersect.Client.Core/Interface/Game/Bank/BankItem.cs

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -191,17 +191,20 @@ public override bool DragAndDrop_HandleDrop(Package package, int x, int y)
191191
var rank = player.GuildRank;
192192
var isInGuild = !string.IsNullOrWhiteSpace(player.Guild);
193193

194-
if (!isInGuild || (Globals.IsGuildBank && player.Rank != 0 && rank?.Permissions.BankDeposit == false))
194+
if (Globals.IsGuildBank)
195195
{
196-
ChatboxMsg.AddMessage(
197-
new ChatboxMsg(
198-
Strings.Guilds.NotAllowedSwap.ToString(player.Guild),
199-
CustomColors.Alerts.Error,
200-
ChatMessageType.Bank
201-
)
202-
);
203-
204-
return false;
196+
if (!isInGuild || (player.Rank != 0 && rank?.Permissions.BankDeposit == false))
197+
{
198+
ChatboxMsg.AddMessage(
199+
new ChatboxMsg(
200+
Strings.Guilds.NotAllowedSwap.ToString(player.Guild),
201+
CustomColors.Alerts.Error,
202+
ChatMessageType.Bank
203+
)
204+
);
205+
206+
return false;
207+
}
205208
}
206209

207210
var targetNode = Interface.FindComponentUnderCursor();

0 commit comments

Comments
 (0)