Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
feat(udpate): update to Terraria 1.4.2.3 and TShock 4.5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Stealownz committed May 24, 2021
1 parent 5ac4efd commit 3799b8b
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Implementation/PluginCooperationHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ public void InfiniteChests_ChestDataImport(

IDbConnection dbConnection = null;
try {
switch (TShock.Config.StorageType.ToLower()) {
switch (TShock.Config.Settings.StorageType.ToLower()) {
case "mysql":
string[] host = TShock.Config.MySqlHost.Split(':');
string[] host = TShock.Config.Settings.MySqlHost.Split(':');
dbConnection = new MySqlConnection(string.Format(
"Server={0}; Port={1}; Database={2}; Uid={3}; Pwd={4};",
host[0],
host.Length == 1 ? "3306" : host[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 @@ -171,16 +171,16 @@ public void InfiniteSigns_SignDataImport(

IDbConnection dbConnection = null;
try {
switch (TShock.Config.StorageType.ToLower()) {
switch (TShock.Config.Settings.StorageType.ToLower()) {
case "mysql":
string[] host = TShock.Config.MySqlHost.Split(':');
string[] host = TShock.Config.Settings.MySqlHost.Split(':');
dbConnection = new MySqlConnection(string.Format(
"Server={0}; Port={1}; Database={2}; Uid={3}; Pwd={4};",
host[0],
host.Length == 1 ? "3306" : host[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

0 comments on commit 3799b8b

Please sign in to comment.