|
|
@@ -5,7 +5,7 @@ using System.Text; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using System.Reflection; |
|
|
|
|
|
|
|
using Harmony; |
|
|
|
using HarmonyLib; |
|
|
|
|
|
|
|
using GamecraftModdingAPI.Utility; |
|
|
|
using GamecraftModdingAPI.Events; |
|
|
@@ -19,7 +19,7 @@ namespace GamecraftModdingAPI |
|
|
|
/// </summary> |
|
|
|
public static class Main |
|
|
|
{ |
|
|
|
private static HarmonyInstance harmony; |
|
|
|
private static Harmony harmony; |
|
|
|
|
|
|
|
public static bool IsInitialized { |
|
|
|
get { return harmony != null; } |
|
|
@@ -43,7 +43,7 @@ namespace GamecraftModdingAPI |
|
|
|
} |
|
|
|
Logging.MetaDebugLog($"Patching Gamecraft"); |
|
|
|
var currentAssembly = Assembly.GetExecutingAssembly(); |
|
|
|
harmony = HarmonyInstance.Create(currentAssembly.GetName().Name); |
|
|
|
harmony = new Harmony(currentAssembly.GetName().Name); |
|
|
|
harmony.PatchAll(currentAssembly); |
|
|
|
// init utility |
|
|
|
Logging.MetaDebugLog($"Initializing Utility"); |
|
|
|