mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
dont add to cache if not found
This commit is contained in:
parent
f2754c57e9
commit
924dadc536
@ -118,6 +118,7 @@ namespace NewHorizons.Utility
|
|||||||
// find resource to include inactive objects
|
// find resource to include inactive objects
|
||||||
// also includes prefabs but hopefully thats okay
|
// also includes prefabs but hopefully thats okay
|
||||||
go = FindResourceOfTypeAndName<GameObject>(name);
|
go = FindResourceOfTypeAndName<GameObject>(name);
|
||||||
|
if (go == null) return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user