hab was vergessen

This commit is contained in:
2020-08-06 20:59:48 +02:00
parent 7e5eb6307c
commit 31f34b7e7e

View File

@@ -161,7 +161,7 @@ namespace ReallifeGamemode.Server.Bank
using (var dbContext = new DatabaseContext()) using (var dbContext = new DatabaseContext())
{ {
if (amount <= 0 || amount > player.GetUser(dbContext).Handmoney) if (amount <= 0 || amount > player.GetUser(dbContext).BankAccount.Balance)
{ {
player.SendNotification($"~r~Dieser Betrag ist ungültig."); player.SendNotification($"~r~Dieser Betrag ist ungültig.");
return; return;