Update OWAssetHandler.cs

This commit is contained in:
Nick 2022-03-05 20:38:48 -05:00
parent d1f33eb336
commit cb64ea3458

View File

@ -37,6 +37,7 @@ namespace NewHorizons.Handlers
if (_materialCache == null) _materialCache = new Dictionary<Material, string>(); if (_materialCache == null) _materialCache = new Dictionary<Material, string>();
// Gonna assume that if theres more than one material its probably in the same asset bundle anyway right
if (_materialCache.TryGetValue(materials[0], out assetBundle)) if (_materialCache.TryGetValue(materials[0], out assetBundle))
{ {
assetBundles.Add(assetBundle); assetBundles.Add(assetBundle);