Skip to content

Commit

Permalink
Made vault IDs case insensetive again
Browse files Browse the repository at this point in the history
  • Loading branch information
ShimmyMySherbet committed Dec 4, 2022
1 parent 6a578d5 commit b410966
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion SherbetVaults/Models/Config/SherbetVaultsConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace SherbetVaults.Models.Config
public class SherbetVaultsConfig : IRocketPluginConfiguration
{
public DatabaseSettings DatabaseSettings;
public bool CacheVaults = true;
public bool CacheVaults = false;
public bool LargestVaultIsDefault = false;
public string DefaultVault = "default";
public bool VaultAliasesEnabled = false;
Expand Down
5 changes: 3 additions & 2 deletions SherbetVaults/Models/Utility/VaultSelector.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Linq;
using System;
using System.Linq;
using System.Threading.Tasks;
using Rocket.API;
using RocketExtensions.Models;
Expand Down Expand Up @@ -93,7 +94,7 @@ private VaultConfig GetDefaultVault(LDMPlayer player, out EVaultAvailability ava
}

public VaultConfig GetVaultConfig(string vaultID) =>
Plugin.VaultConfigs.FirstOrDefault(x => x.VaultID.Equals(vaultID));
Plugin.VaultConfigs.FirstOrDefault(x => x.VaultID.Equals(vaultID, StringComparison.InvariantCultureIgnoreCase));

private VaultConfig GetLargetVault(LDMPlayer player) =>
GetPlayerVaults(player)
Expand Down

0 comments on commit b410966

Please sign in to comment.