Should fix inventory definitions updating on server

This commit is contained in:
Garry Newman 2019-05-14 15:47:25 +01:00
parent 98915f0950
commit fed6ccdefa

View File

@ -37,7 +37,7 @@ internal static void InstallEvents()
{
SteamInventoryFullUpdate_t.Install( x => InventoryUpdated( x ) );
SteamInventoryDefinitionUpdate_t.Install( x => LoadDefinitions() );
SteamInventoryDefinitionUpdate_t.Install( x => OnServerDefinitionsUpdated(), true );
SteamInventoryDefinitionUpdate_t.Install( x => LoadDefinitions(), true );
}
private static void InventoryUpdated( SteamInventoryFullUpdate_t x )
@ -50,7 +50,6 @@ private static void InventoryUpdated( SteamInventoryFullUpdate_t x )
public static event Action<InventoryResult> OnInventoryUpdated;
public static event Action OnDefinitionsUpdated;
public static event Action OnServerDefinitionsUpdated;
static void LoadDefinitions()
{