From 3799b8b5a601334bee4a05119c094ddc6493dc94 Mon Sep 17 00:00:00 2001 From: Stealownz Date: Tue, 25 May 2021 00:58:30 +0800 Subject: [PATCH] feat(udpate): update to Terraria 1.4.2.3 and TShock 4.5.3 --- Implementation/PluginCooperationHandler.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Implementation/PluginCooperationHandler.cs b/Implementation/PluginCooperationHandler.cs index b9ce6e7..929a1dc 100644 --- a/Implementation/PluginCooperationHandler.cs +++ b/Implementation/PluginCooperationHandler.cs @@ -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; @@ -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;