diff --git a/Source/DialogUtilities.cs b/Source/DialogUtilities.cs index 6cba299..9f1638a 100644 --- a/Source/DialogUtilities.cs +++ b/Source/DialogUtilities.cs @@ -91,7 +91,9 @@ public static void InitializeDialogPauseLock() { if (isPauseLockInitialized) return; +#pragma warning disable CS0618 // Type or member is obsolete MP.RegisterPauseLock(IsPausingDialogOpen); +#pragma warning restore CS0618 // Type or member is obsolete isPauseLockInitialized = true; } diff --git a/Source/Mods/SimpleSidearms.cs b/Source/Mods/SimpleSidearms.cs index 65675bb..bf9760c 100644 --- a/Source/Mods/SimpleSidearms.cs +++ b/Source/Mods/SimpleSidearms.cs @@ -16,7 +16,7 @@ public class SimpleSidearmsCompat { // TODO: Suggest the author to encapsulate this, would simplify things so much [MpCompatSyncField("SimpleSidearms.rimworld.CompSidearmMemory", "primaryWeaponMode")] - private static ISyncField primaryWeaponModeSyncField; + protected static ISyncField primaryWeaponModeSyncField; public SimpleSidearmsCompat(ModContentPack mod) { diff --git a/Source/Mods/VanillaFactionsTribal.cs b/Source/Mods/VanillaFactionsTribal.cs index 9336174..588ada1 100644 --- a/Source/Mods/VanillaFactionsTribal.cs +++ b/Source/Mods/VanillaFactionsTribal.cs @@ -71,9 +71,9 @@ public VanillaFactionsTribal(ModContentPack mod) // GameComponent_Tribals private static AccessTools.FieldRef tribalsGameCompInstance; [MpCompatSyncField("VFETribals.GameComponent_Tribals", "ethos")] - private static ISyncField tribalsGameCompEthosField; + protected static ISyncField tribalsGameCompEthosField; [MpCompatSyncField("VFETribals.GameComponent_Tribals", "ethosLocked")] - private static ISyncField tribalsGameCompEthosLockedField; + protected static ISyncField tribalsGameCompEthosLockedField; // Window_CustomizeCornerstones private static Type customizeCornerstonesWindowType;