mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
[OriginShift] other shit
This commit is contained in:
parent
373a60a9d9
commit
5f7eed65e8
1 changed files with 6 additions and 6 deletions
|
@ -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))]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue