Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions InfiniteChestsV3/DB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -236,7 +236,7 @@ public static int TransferV1()
InfMain.lockChests = true;
List<InfChest> chests = new List<InfChest>();

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
Expand Down Expand Up @@ -320,7 +320,7 @@ public static int TransferV2()
InfMain.lockChests = true;
List<InfChest> chests = new List<InfChest>();

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
Expand Down
Binary file modified InfiniteChestsV3/References/OTAPI.dll
Binary file not shown.
Binary file modified InfiniteChestsV3/References/TShockAPI.dll
Binary file not shown.