From 3423789e68a4094d2c76593615024940e1b74477 Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 5 Dec 2023 16:37:05 -0500 Subject: [PATCH] Update ModAssembly.cs --- Winch/Core/ModAssembly.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Winch/Core/ModAssembly.cs b/Winch/Core/ModAssembly.cs index d36b11d7..9392d9ae 100644 --- a/Winch/Core/ModAssembly.cs +++ b/Winch/Core/ModAssembly.cs @@ -145,12 +145,12 @@ private void ProcessPreload() string preloadTypeName = preloadSetting.Split('/')[0]; string preloadMethodName = preloadSetting.Split('/')[1]; - Type entrypointType = LoadedAssembly?.GetType(preloadTypeName) ?? + Type preloaderType = LoadedAssembly?.GetType(preloadTypeName) ?? throw new EntryPointNotFoundException($"Could not find type {preloadTypeName} in Mod Assembly"); - MethodInfo preloader = entrypointType.GetMethod(preloadMethodName) ?? + MethodInfo preloader = preloaderType.GetMethod(preloadMethodName) ?? throw new EntryPointNotFoundException($"Could not find method {preloadTypeName} in type {preloadTypeName} in Mod Assembly"); - WinchCore.Log.Debug($"Invoking preloader {entrypointType}.{preloadMethodName}..."); + WinchCore.Log.Debug($"Invoking preloader {preloaderType}.{preloadMethodName}..."); preloader.Invoke(null, new object[0]); } }