dont add to cache if not found

This commit is contained in:
JohnCorby 2022-07-09 18:39:26 -07:00
parent f2754c57e9
commit 924dadc536

View File

@ -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;
} }
} }