Skip to content

Commit

Permalink
build 98 compatibility (AMacro#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
t0stiman authored Apr 24, 2024
1 parent 14dd6e2 commit 3edb410
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Multiplayer/Components/SaveGame/StartGameData_ServerSave.cs
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,6 @@ public override bool ShouldCreateSaveGameAfterLoad()
{
return false;
}

public override void MakeCurrent(){}
}
4 changes: 2 additions & 2 deletions Multiplayer/Patches/CommsRadio/CommsRadioCarDeleterPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public static class CommsRadioCarDeleterPatch
[HarmonyPatch(nameof(CommsRadioCarDeleter.OnUse))]
private static bool OnUse_Prefix(CommsRadioCarDeleter __instance)
{
if (__instance.state != CommsRadioCarDeleter.State.ConfirmDelete)
if (__instance.CurrentState != CommsRadioCarDeleter.State.ConfirmDelete)
return true;
if (NetworkLifecycle.Instance.IsHost() && NetworkLifecycle.Instance.Server.PlayerCount == 1)
return true;
Expand Down Expand Up @@ -50,7 +50,7 @@ private static IEnumerator PlaySoundsLater(CommsRadioCarDeleter __instance, Vect
[HarmonyPatch(nameof(CommsRadioCarDeleter.OnUpdate))]
private static bool OnUpdate_Prefix(CommsRadioCarDeleter __instance)
{
if (__instance.state != CommsRadioCarDeleter.State.ScanCarToDelete)
if (__instance.CurrentState != CommsRadioCarDeleter.State.ScanCarToDelete)
return true;
if (NetworkLifecycle.Instance.IsHost() && NetworkLifecycle.Instance.Server.PlayerCount == 1)
return true;
Expand Down

0 comments on commit 3edb410

Please sign in to comment.