Skip to content

Commit 93898ef

Browse files
committed
Front suspension not saving fix
1 parent 6b4c765 commit 93898ef

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

WarmTofuMod.cs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace WarmTofuMod
1212
{
13-
[BepInPlugin("com.kert.warmtofumod", "WarmTofuMod", "1.3.0")]
13+
[BepInPlugin("com.kert.warmtofumod", "WarmTofuMod", "1.3.2")]
1414
public class WarmTofuMod : BaseUnityPlugin
1515
{
1616
public enum Menus
@@ -92,6 +92,9 @@ private void Awake()
9292
// mod GUI and logic
9393
On.RCC_PhotonManager.OnGUI += RCC_PhotonManager_OnGUI;
9494

95+
// Front suspension not saving fix
96+
On.GarageManager.Start += GarageManager_Start;
97+
9598
// performance fixes
9699
On.SRPlayerCollider.Update += SRPlayerCollider_Update;
97100
On.SRMessageOther.Update += SRMessageOther_Update;
@@ -452,6 +455,19 @@ void SRSkyManager_Update(On.SRSkyManager.orig_Update orig, SRSkyManager self)
452455
// }
453456
}
454457

458+
void GarageManager_Start(On.GarageManager.orig_Start orig, GarageManager self)
459+
{
460+
orig(self);
461+
self.frontSuspensionDistances.onValueChanged.AddListener(delegate
462+
{
463+
RCC_CustomizerExample.Instance.SaveStatsTemp();
464+
});
465+
self.frontSuspensionDistances.onValueChanged.AddListener(delegate
466+
{
467+
self.SendInfo3RPC();
468+
});
469+
}
470+
455471
void RCC_Camera_ChangeCamera(On.RCC_Camera.orig_ChangeCamera orig, RCC_Camera self)
456472
{
457473
orig(self);

WarmTofuMod.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netstandard2.0</TargetFramework>
55
<AssemblyName>WarmTofuMod</AssemblyName>
66
<Description>Initial Drift Online mod by Kert</Description>
7-
<Version>1.3.1</Version>
7+
<Version>1.3.2</Version>
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<LangVersion>latest</LangVersion>
1010
</PropertyGroup>

0 commit comments

Comments
 (0)