0.489.1.4890338

This commit is contained in:
Max
2021-08-05 23:07:45 -05:00
parent ffe75acacf
commit 712f1c438c
3 changed files with 18 additions and 7 deletions

View File

@ -124,7 +124,7 @@ namespace RobloxFiles
{
if (Attributes.TryGetValue(key, out RbxAttribute attr))
{
if (attr.Value is T result)
if (attr?.Value is T result)
{
value = result;
return true;
@ -152,6 +152,12 @@ namespace RobloxFiles
if (key.StartsWith("RBX", StringComparison.InvariantCulture))
return false;
if (value == null)
{
Attributes[key] = null;
return true;
}
Type type = value.GetType();
if (!RbxAttribute.SupportsType(type))