diff --git a/resources/modinfo.json b/resources/modinfo.json index 6a800df..2df38e5 100644 --- a/resources/modinfo.json +++ b/resources/modinfo.json @@ -10,6 +10,6 @@ ], "side": "Universal", "description": "Stores and displays prospecting data on the map and allows sharing data between players. Based on ProspectoInfo by P3t3rix.", - "version": "2.0.2", + "version": "2.0.3-rc.1", "requiredOnServer": false } \ No newline at end of file diff --git a/src/ProspectorTogetherModSystem.cs b/src/ProspectorTogetherModSystem.cs index 6023ccf..1040584 100644 --- a/src/ProspectorTogetherModSystem.cs +++ b/src/ProspectorTogetherModSystem.cs @@ -235,7 +235,15 @@ public override void Start(ICoreAPI api) if (!Harmony.HasAnyPatches(Mod.Info.ModID)) { harmony = new Harmony(Mod.Info.ModID); - harmony.PatchAll(); + try + { + harmony.PatchAll(); + } + catch (HarmonyException ex) + { + api.Logger.Log(EnumLogType.Warning, "Failed to patch OreMapLayer: " + ex.ToString()); + api.Logger.Log(EnumLogType.Warning, "The mod will not work properly."); + } } } }