Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update for TShock 4.5.0.1 (Terraria 1.4.1.2) #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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.