[OriginShift] other shit

This commit is contained in:
NotAKidoS 2024-06-18 16:24:38 -05:00
parent 373a60a9d9
commit 5f7eed65e8

View file

@ -216,12 +216,12 @@ internal static class CVRSyncHelperPatches
internal static class CVRObjectSyncPatches internal static class CVRObjectSyncPatches
{ {
[HarmonyPostfix] // [HarmonyPostfix]
[HarmonyPatch(typeof(CVRObjectSync), nameof(CVRObjectSync.Start))] // [HarmonyPatch(typeof(CVRObjectSync), nameof(CVRObjectSync.Start))]
private static void Postfix_CVRObjectSync_Start(ref CVRObjectSync __instance) // private static void Postfix_CVRObjectSync_Start(ref CVRObjectSync __instance)
{ // {
__instance.gameObject.AddComponentIfMissing<OriginShiftObjectSyncReceiver>(); // __instance.gameObject.AddComponentIfMissing<OriginShiftObjectSyncReceiver>(); // todo: investigate if this is needed
} // }
[HarmonyPrefix] // inbound object sync [HarmonyPrefix] // inbound object sync
[HarmonyPatch(typeof(CVRObjectSync), nameof(CVRObjectSync.receiveNetworkData))] [HarmonyPatch(typeof(CVRObjectSync), nameof(CVRObjectSync.receiveNetworkData))]