Log missing decal path

This commit is contained in:
Noah Pilarski 2022-09-17 19:33:21 -04:00
parent 25fc5ce2c5
commit 2260188164

View File

@ -106,7 +106,9 @@ namespace NewHorizons.Builder.Props
var id = RemoteHandler.GetPlatformID(info.id); var id = RemoteHandler.GetPlatformID(info.id);
var decal = ImageUtilities.GetTexture(mod, info.decalPath, false, false); Texture2D decal = Texture2D.whiteTexture;
if (!string.IsNullOrWhiteSpace(info.decalPath)) decal = ImageUtilities.GetTexture(mod, info.decalPath, false, false);
else Logger.LogError($"Missing decal path on [{info.id}] for [{go.name}]");
if (info.platform != null) if (info.platform != null)
{ {