haus löschen mahlzeit moin
This commit is contained in:
@@ -37,7 +37,7 @@ namespace ReallifeGamemode.Server.Managers
|
||||
if (c.IsInVehicle && c.VehicleSeat == 0)
|
||||
{
|
||||
Vehicle v = c.Vehicle;
|
||||
if (v.GetServerVehicle() is FactionVehicle fV && fV.GetOwners().TrueForAll(fV => dbContext.Factions.Where(f => f.Id == fV).First().StateOwned))
|
||||
if (v.GetServerVehicle() is FactionVehicle fV && fV.GetOwners().Any(fV => dbContext.Factions.Where(f => f.Id == fV && f.StateOwned).Any()))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user