LSPD/FIB: Fix Geld bei einknasten
This commit is contained in:
@@ -102,7 +102,7 @@ namespace ReallifeGamemode.Server.Extensions
|
|||||||
}
|
}
|
||||||
|
|
||||||
int factionMoney = user.Wanteds * 6;
|
int factionMoney = user.Wanteds * 6;
|
||||||
var executiveFactions = dbContext.Factions.Where(f => f.Id == 1 || f.Id == 3);
|
var executiveFactions = dbContext.Factions.Include(f => f.BankAccount).Where(f => f.Id == 1 || f.Id == 3);
|
||||||
foreach(var faction in executiveFactions)
|
foreach(var faction in executiveFactions)
|
||||||
{
|
{
|
||||||
faction.BankAccount.Balance += factionMoney;
|
faction.BankAccount.Balance += factionMoney;
|
||||||
|
|||||||
Reference in New Issue
Block a user