1
0
mirror of synced 2024-11-28 01:10:51 +01:00

BYAML : Make sure the !h tag is only used for calculated hash strings

This commit is contained in:
KillzXGaming 2022-04-29 16:43:58 -04:00
parent 196a7f5525
commit 4ac5dc5e3c

View File

@ -228,10 +228,11 @@ namespace FirstPlugin
{
uint hash = Convert.ToUInt32(key, 16);
if (BYAML.Hashes.ContainsKey(hash))
{
key = $"{BYAML.Hashes[hash]}";
keyNode = new YamlScalarNode(key);
keyNode.Tag = "!h";
keyNode = new YamlScalarNode(key);
keyNode.Tag = "!h";
}
}
yamlNode.Add(keyNode, SaveNode(item.Key, item.Value));
}