Code updates

This commit is contained in:
pan.codes 2025-06-08 21:38:33 +02:00
parent 6e2d2fac98
commit eefc098b20
6 changed files with 109 additions and 8 deletions

View file

@ -54,7 +54,7 @@ namespace CurrencyChanger2
var texture = GetTexture();
if (texture == null) return this;
Plugin.StaticLogger.LogWarning("Applying " + Enum.GetName(typeof(TTexture), Texture.Value) + " texture to " + pack.gameObject.name + " (Money)");
foreach (var item1 in pack.GetComponent<MeshRenderer>().sharedMaterials)
foreach (var item1 in pack.GetComponentInChildren<MeshRenderer>().sharedMaterials)
{
item1.mainTexture = texture;
}