fix wheeltype sync
This commit is contained in:
@@ -91,7 +91,11 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
{
|
{
|
||||||
foreach (VehicleMod vMod in dbContext.VehicleMods.ToList().FindAll(vM => vM.ServerVehicleId == sVeh.Id))
|
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);
|
veh.SetSharedData("mod" + vMod.Slot, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user