Skip to content

Commit

Permalink
use patches
Browse files Browse the repository at this point in the history
  • Loading branch information
misternebula committed Mar 11, 2024
1 parent 8343d45 commit 3fe40cd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion QSB-NH/WarpManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using System.Text;
using System.Threading.Tasks;
using Mirror;
using QSB.Patches;
using QSB.Utility;

namespace QSBNH;
Expand Down Expand Up @@ -118,8 +119,10 @@ public override void OnReceiveRemote()
}

[HarmonyPatch]
public class NHWarpPatch
public class NHWarpPatch : QSBPatch
{
public override QSBPatchTypes Type => QSBPatchTypes.OnModStart;

[HarmonyPrefix]
[HarmonyPatch(typeof(NewHorizons.Main), nameof(NewHorizons.Main.ChangeCurrentStarSystem))]
public static bool NewHorizons_ChangeCurrentStarSystem(string newStarSystem, bool warp, bool vessel)
Expand Down

0 comments on commit 3fe40cd

Please sign in to comment.