Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion resources/modinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
10 changes: 9 additions & 1 deletion src/ProspectorTogetherModSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}
}
}
Expand Down