Skip to content

Commit

Permalink
Fixed null ref error
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimmyMySherbet committed Jun 26, 2022
1 parent fcdc90f commit ab44bd6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SherbetVaults/SherbetVaultsPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@ public partial class SherbetVaultsPlugin : RocketPlugin<SherbetVaultsConfig>
public VaultSelector VaultSelector { get; private set; }
public RestrictionBuilder RestrictionBuilder { get; private set; }
public RestrictionTool RestrictionTool { get; private set; }
public ItemTableTool ItemTable { get; } = new ItemTableTool();
public ItemTableTool ItemTable { get; private set; }
public List<VaultRestrictionGroup> RestrictionGroups { get; private set; }

public SherbetVaultsConfig Config => Configuration.Instance;
public List<VaultConfig> VaultConfigs => Config.Vaults;
public List<VaultRestrictionGroup> RestrictionGroups { get; private set; } = new List<VaultRestrictionGroup>();



Expand All @@ -38,6 +39,9 @@ public override void LoadPlugin()
RestrictionBuilder = new RestrictionBuilder(this);
RestrictionTool = new RestrictionTool(this);
Database = new DatabaseManager(this);
VaultSelector = new VaultSelector(this);
ItemTable = new ItemTableTool();
RestrictionGroups = new List<VaultRestrictionGroup>();

if (!Database.Connect(out var errorMessage))
{
Expand Down

0 comments on commit ab44bd6

Please sign in to comment.