Skip to content

Commit

Permalink
use availability over start
Browse files Browse the repository at this point in the history
  • Loading branch information
XuaTheGrate authored and ontrigger committed Mar 27, 2021
1 parent 6aa1eb9 commit 597f1cf
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ItemStats/src/ItemStatsMod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,16 @@ private ItemStatsMod()
Logger = base.Logger;
}

public void Start()
public void Awake()
{
InitConfig();

ItemStatProvider.Init();
StatModifiers.Init();
Hooks.Init();
ItemCatalog.availability.CallWhenAvailable(() =>
{
ItemStatProvider.Init();
StatModifiers.Init();
Hooks.Init();
});
}

private void InitConfig()
Expand Down

0 comments on commit 597f1cf

Please sign in to comment.