diff --git a/InfiniteChestsV3/DB.cs b/InfiniteChestsV3/DB.cs index 42302d5..9bce4da 100644 --- a/InfiniteChestsV3/DB.cs +++ b/InfiniteChestsV3/DB.cs @@ -19,18 +19,18 @@ public static class DB public static void Connect() { - switch (TShock.Config.StorageType.ToLower()) + switch (TShock.Config.Settings.StorageType.ToLower()) { case "mysql": - string[] dbHost = TShock.Config.MySqlHost.Split(':'); + string[] dbHost = TShock.Config.Settings.MySqlHost.Split(':'); db = new MySqlConnection() { ConnectionString = string.Format("Server={0}; Port={1}; Database={2}; Uid={3}; Pwd={4};", dbHost[0], dbHost.Length == 1 ? "3306" : dbHost[1], - TShock.Config.MySqlDbName, - TShock.Config.MySqlUsername, - TShock.Config.MySqlPassword) + TShock.Config.Settings.MySqlDbName, + TShock.Config.Settings.MySqlUsername, + TShock.Config.Settings.MySqlPassword) }; break; @@ -236,7 +236,7 @@ public static int TransferV1() InfMain.lockChests = true; List chests = new List(); - if (TShock.Config.StorageType == "sqlite") + if (TShock.Config.Settings.StorageType == "sqlite") { // We have to open a new db connection, as these tables are in different .sqlite files try @@ -320,7 +320,7 @@ public static int TransferV2() InfMain.lockChests = true; List chests = new List(); - if (TShock.Config.StorageType == "sqlite") + if (TShock.Config.Settings.StorageType == "sqlite") { // We have to open a new db connection, as these tables are in different .sqlite files try diff --git a/InfiniteChestsV3/References/OTAPI.dll b/InfiniteChestsV3/References/OTAPI.dll index d013c60..136e725 100644 Binary files a/InfiniteChestsV3/References/OTAPI.dll and b/InfiniteChestsV3/References/OTAPI.dll differ diff --git a/InfiniteChestsV3/References/TShockAPI.dll b/InfiniteChestsV3/References/TShockAPI.dll index 454afaa..8706d74 100644 Binary files a/InfiniteChestsV3/References/TShockAPI.dll and b/InfiniteChestsV3/References/TShockAPI.dll differ