[ThirdPerson] Fixes for r173

This commit is contained in:
NotAKidoS 2023-11-08 20:30:46 -06:00
parent fee053bb64
commit 0d4e6e6331
4 changed files with 8 additions and 103 deletions

View file

@ -17,7 +17,6 @@ internal static class Patches
);
harmony.Patch(
typeof(CVRWorld).GetMethod(nameof(CVRWorld.CopyRefCamValues), BindingFlags.NonPublic | BindingFlags.Instance),
prefix: typeof(Patches).GetMethod(nameof(OnPreWorldStart), BindingFlags.NonPublic | BindingFlags.Static).ToNewHarmonyMethod(),
postfix: typeof(Patches).GetMethod(nameof(OnPostWorldStart), BindingFlags.NonPublic | BindingFlags.Static).ToNewHarmonyMethod()
);
harmony.Patch(
@ -31,7 +30,6 @@ internal static class Patches
}
//Copy camera settings & postprocessing components
private static void OnPreWorldStart() => ResetPlayerCamValues();
private static void OnPostWorldStart() => CopyPlayerCamValues();
//Adjust camera distance with height as modifier
private static void OnScaleAdjusted(float height) => AdjustScale(height);