Log bug
Logged a successful load before actually trying to load
This commit is contained in:
parent
54b9fd7596
commit
54c3427a3a
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue