fix wheeltype sync

This commit is contained in:
hydrant
2021-05-08 02:38:41 +02:00
parent c1fb0eaa69
commit 28df38a781

View File

@@ -91,7 +91,11 @@ namespace ReallifeGamemode.Server.Managers
{
foreach (VehicleMod vMod in dbContext.VehicleMods.ToList().FindAll(vM => vM.ServerVehicleId == sVeh.Id))
{
if (vMod.Slot == 18)
if (vMod.Slot == -2)
{
veh.SetSharedData("wheelType", vMod.ModId);
}
else if (vMod.Slot == 18)
{
veh.SetSharedData("mod" + vMod.Slot, true);
}