Fixed tuning issue

This commit is contained in:
hydrant
2018-11-29 22:03:07 +01:00
parent 47fc897a77
commit b639c7ea01
3 changed files with 12 additions and 7 deletions

View File

@@ -90,6 +90,15 @@ namespace reallife_gamemode.Server.Managers
}
else
{
if (vMod == null)
{
vMod = new VehicleMod
{
ServerVehicleId = sV.Id,
Slot = slot
};
dbContext.VehicleMods.Add(vMod);
}
vMod.ModId = index;
}
dbContext.SaveChanges();

View File

@@ -43,7 +43,6 @@ namespace reallife_gamemode.Server.Managers
public static Vehicle GetVehicleFromServerVehicle(ServerVehicle serverVehicle)
{
Console.WriteLine("calling GetVehicleFromServerVehicle | " + serverVehicle.Id);
if(!_serverVehicles.ContainsKey(serverVehicle.Id))
{
return null;