1
0
mirror of synced 2025-01-19 09:17:30 +01:00

BYAML : Support upper case boolean values when converting yaml back

This commit is contained in:
KillzXGaming 2020-12-12 12:35:36 -05:00
parent ad98ec7db9
commit 66749710ce

View File

@ -158,9 +158,9 @@ namespace FirstPlugin
if (value == "null") if (value == "null")
return null; return null;
else if (value == "true") else if (value == "true" || value == "True")
return true; return true;
else if (value == "false") else if (value == "false" || value == "False")
return false; return false;
else if (tag == "!u") else if (tag == "!u")
return UInt32.Parse(value, CultureInfo.InvariantCulture); return UInt32.Parse(value, CultureInfo.InvariantCulture);