Fraktionsfahrzeugverkauf Abfrage wird jetzt richtig gezählt <=6

This commit is contained in:
VegaZ
2021-04-22 23:44:59 +02:00
parent d2486c7815
commit ad69424fc6

View File

@@ -551,7 +551,7 @@ namespace ReallifeGamemode.Server.Managers
return;
}
var factionVehicleCount = dbContext.FactionVehicles.ToList().Where(v => v.Id == id && v.GetOwners().Contains(user.FactionId.Value)).Count();
var factionVehicleCount = dbContext.FactionVehicles.ToList().Where(v => v.GetOwners().Contains(user.FactionId.Value)).Count();
if (factionVehicleCount <= 6)
{
ChatService.ErrorMessage(player, "Die Fraktion braucht mindestens 6 Fahrzeuge");