From 6c700ff8a01c7acb2eac346d7f373c95ca3f1222 Mon Sep 17 00:00:00 2001 From: InfernalSkys <37850708+InfernalSkys@users.noreply.github.com> Date: Tue, 19 Nov 2024 22:32:39 +0200 Subject: [PATCH] Update ReGrowthCore (#493) * Update SearchAndDestroy Update to make the patch work with the unofficial continuation of the mod since the original appears to be abandoned * Update ReGrowthCore.cs * Update ReGrowthCore.cs Removed redundant synchronization for 'MakeCamp' method --- Source/Mods/ReGrowthCore.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Mods/ReGrowthCore.cs b/Source/Mods/ReGrowthCore.cs index 426f9e96..8cca1c47 100644 --- a/Source/Mods/ReGrowthCore.cs +++ b/Source/Mods/ReGrowthCore.cs @@ -1,4 +1,6 @@ -using Verse; +using Verse; +using Multiplayer.API; +using HarmonyLib; namespace Multiplayer.Compat { @@ -18,6 +20,10 @@ public ReGrowthCore(ModContentPack mod) // RNG // Could be fixed by clearing the cache on join, but it affects a small graphical thing (motes). Not really worth bothering with. PatchingUtilities.PatchPushPopRand("ReGrowthCore.WeatherOverlay_FogMotes:TickOverlay"); + + // Register the MakeCamp method to be synchronized + var type = AccessTools.TypeByName("ReGrowthCore.Caravan_GetGizmos_Patch"); + MP.RegisterSyncMethod(type, "MakeCamp"); } private static void LatePatch() => PatchingUtilities.PatchPushPopRand("ReGrowthCore.DevilDust_Tornado:ThrowDevilDustPuff");