mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2026-06-20 21:48:02 +00:00
[NAK_CVR_Mods] Unfucked for 2026r182
This commit is contained in:
parent
c13dc8375a
commit
281403d68b
209 changed files with 3936 additions and 1122 deletions
|
|
@ -15,11 +15,24 @@ public class CustomSpawnPointMod : MelonMod
|
|||
|
||||
SpawnPointManager.Init();
|
||||
|
||||
HarmonyInstance.Patch( // listen for world details page request
|
||||
typeof(ViewManager).GetMethod(nameof(ViewManager.RequestWorldDetailsPage)),
|
||||
new HarmonyMethod(typeof(CustomSpawnPointMod).GetMethod(nameof(OnRequestWorldDetailsPage),
|
||||
HarmonyInstance.Patch(
|
||||
typeof(ViewManager).GetMethod(nameof(ViewManager.Start),
|
||||
BindingFlags.NonPublic | BindingFlags.Instance),
|
||||
postfix: new HarmonyMethod(typeof(CustomSpawnPointMod).GetMethod(nameof(OnViewManagerStart),
|
||||
BindingFlags.NonPublic | BindingFlags.Static))
|
||||
);
|
||||
|
||||
HarmonyInstance.Patch( // listen for world details page request
|
||||
typeof(ViewManager).GetMethod(nameof(ViewManager.RequestWorldDetailsPage),
|
||||
BindingFlags.Public | BindingFlags.Instance),
|
||||
postfix: new HarmonyMethod(typeof(CustomSpawnPointMod).GetMethod(nameof(OnRequestWorldDetailsPage),
|
||||
BindingFlags.NonPublic | BindingFlags.Static))
|
||||
);
|
||||
}
|
||||
|
||||
private static void OnViewManagerStart()
|
||||
{
|
||||
SpawnPointManager.OnViewManagerStart();
|
||||
}
|
||||
|
||||
private static void OnRequestWorldDetailsPage(string worldId)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue