staatsfrak cars tunen

This commit is contained in:
hydrant
2020-08-02 17:38:28 +02:00
parent ae5c866b76
commit 672d39450b

View File

@@ -38,7 +38,7 @@ namespace ReallifeGamemode.Server.Managers
if (c.IsInVehicle && c.VehicleSeat == 0) if (c.IsInVehicle && c.VehicleSeat == 0)
{ {
Vehicle v = c.Vehicle; Vehicle v = c.Vehicle;
if (v.GetServerVehicle() is FactionVehicle fV && fV.GetOwners().Any(fV => dbContext.Factions.Where(f => f.Id == fV && f.StateOwned).Any())) if (v.GetServerVehicle() is FactionVehicle fV)
{ {
return; return;
} }