mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-09-23 09:53:12 +00:00
Don't set DISPLAYNAME if empty
This commit is contained in:
@@ -108,6 +108,8 @@ namespace PckStudio.Core.Extensions
|
||||
// TODO: keep filepath
|
||||
asset.Filename = $"dlcskin{skinId}.png";
|
||||
|
||||
if (!string.IsNullOrEmpty(skin.MetaData.Name))
|
||||
{
|
||||
asset.SetParameter("DISPLAYNAME", skin.MetaData.Name);
|
||||
|
||||
if (localizationFile is not null)
|
||||
@@ -116,6 +118,7 @@ namespace PckStudio.Core.Extensions
|
||||
asset.SetParameter("DISPLAYNAMEID", skinLocKey);
|
||||
localizationFile.SetLocEntry(skinLocKey, skin.MetaData.Name);
|
||||
}
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(skin.MetaData.Theme))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user