mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 07:05:50 +03:00
FindDefinition return null if _defMap is null
This commit is contained in:
parent
fdee0bfc1e
commit
6981eb4a73
@ -125,6 +125,9 @@ public static async Task<bool> WaitForDefinitions( float timeoutSeconds = 30 )
|
||||
/// </summary>
|
||||
public static InventoryDef FindDefinition( InventoryDefId defId )
|
||||
{
|
||||
if ( _defMap == null )
|
||||
return null;
|
||||
|
||||
if ( _defMap.TryGetValue( defId, out var val ) )
|
||||
return val;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user