mirror of
https://github.com/Facepunch/Facepunch.Steamworks.git
synced 2024-12-27 23:25:55 +03:00
Should fix inventory definitions updating on server
This commit is contained in:
parent
98915f0950
commit
fed6ccdefa
@ -37,7 +37,7 @@ internal static void InstallEvents()
|
|||||||
{
|
{
|
||||||
SteamInventoryFullUpdate_t.Install( x => InventoryUpdated( x ) );
|
SteamInventoryFullUpdate_t.Install( x => InventoryUpdated( x ) );
|
||||||
SteamInventoryDefinitionUpdate_t.Install( x => LoadDefinitions() );
|
SteamInventoryDefinitionUpdate_t.Install( x => LoadDefinitions() );
|
||||||
SteamInventoryDefinitionUpdate_t.Install( x => OnServerDefinitionsUpdated(), true );
|
SteamInventoryDefinitionUpdate_t.Install( x => LoadDefinitions(), true );
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void InventoryUpdated( SteamInventoryFullUpdate_t x )
|
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<InventoryResult> OnInventoryUpdated;
|
||||||
public static event Action OnDefinitionsUpdated;
|
public static event Action OnDefinitionsUpdated;
|
||||||
public static event Action OnServerDefinitionsUpdated;
|
|
||||||
|
|
||||||
static void LoadDefinitions()
|
static void LoadDefinitions()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user