From 54c3427a3a8d506cd505cb3d83bcda6d96fc3b65 Mon Sep 17 00:00:00 2001 From: dagoogle Date: Thu, 1 Aug 2019 14:03:45 -0700 Subject: [PATCH] Log bug Logged a successful load before actually trying to load --- src/Loader.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Loader.cs b/src/Loader.cs index 1aaca8c..6784184 100644 --- a/src/Loader.cs +++ b/src/Loader.cs @@ -48,8 +48,8 @@ namespace ModLoader Log("Found type in " + file.Name + ": " + t.Name); if (t.IsClass && t.IsSubclassOf(typeof(MonoBehaviour))) { - Log("Loaded '" + t.Name + "' in " + file.Name); modObjects.AddComponent(t); + Log("Loaded '" + t.Name + "' in " + file.Name); } } } @@ -61,4 +61,4 @@ namespace ModLoader UnityEngine.Object.DontDestroyOnLoad(modObjects); } } -} \ No newline at end of file +}