Merge pull request #326 from kamyker/kamyker-patch-2

Fix for InvetoryDef Properties
This commit is contained in:
Garry Newman 2020-02-22 20:54:30 +00:00 committed by GitHub
commit d58dfdf4d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,10 @@ public string GetProperty( string name )
if ( !SteamInventory.Internal.GetItemDefinitionProperty( Id, name, out var vl, ref _ ) )
return null;
if (name == null) //return keys string
return vl;
if ( _properties == null )
_properties = new Dictionary<string, string>();
@ -235,4 +238,4 @@ public bool Equals( InventoryDef p )
}
}
}
}