Log missing decal path (#397)

This commit is contained in:
Will Corby 2022-09-18 20:16:16 -07:00 committed by GitHub
commit 329377098c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -106,7 +106,9 @@ namespace NewHorizons.Builder.Props
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)
{