mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2024-12-29 12:21:25 +00:00
Don't break if we find a null script in FontReplacer
This commit is contained in:
parent
3e30535e8d
commit
6dcb938ad5
@ -13,6 +13,12 @@ public static class FontReplacer
|
||||
|
||||
foreach (var monoBehaviour in prefab.GetComponentsInChildren<MonoBehaviour>(true))
|
||||
{
|
||||
if (monoBehaviour == null)
|
||||
{
|
||||
DebugLog.ToConsole($"Null monobehaviour found on {prefab.name}!", OWML.Common.MessageType.Warning);
|
||||
continue;
|
||||
}
|
||||
|
||||
var publicFields = monoBehaviour
|
||||
.GetType()
|
||||
.GetFields(BindingFlags.Public | BindingFlags.Instance);
|
||||
|
Loading…
Reference in New Issue
Block a user