Simplified /cleaned some code parts

This commit is contained in:
hydrant
2018-10-16 11:03:06 +02:00
parent 67acbd6fd9
commit a5e9b07827
4 changed files with 3 additions and 48 deletions

View File

@@ -18,10 +18,9 @@ namespace reallife_gamemode.Server.Extensions
{
public static class VehicleExtension
{
public static bool IsFactionVehicle(Vehicle vehicle)
public static bool IsFactionVehicle(this Vehicle vehicle)
{
bool containsVehicle = LoadManager.FactionVehicleList.Contains(vehicle);
return containsVehicle;
return LoadManager.FactionVehicleList.Contains(vehicle);
}
}
}