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

Commit 3799b8b

Browse files
committed
feat(udpate): update to Terraria 1.4.2.3 and TShock 4.5.3
1 parent 5ac4efd commit 3799b8b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

Implementation/PluginCooperationHandler.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ public void InfiniteChests_ChestDataImport(
5757

5858
IDbConnection dbConnection = null;
5959
try {
60-
switch (TShock.Config.StorageType.ToLower()) {
60+
switch (TShock.Config.Settings.StorageType.ToLower()) {
6161
case "mysql":
62-
string[] host = TShock.Config.MySqlHost.Split(':');
62+
string[] host = TShock.Config.Settings.MySqlHost.Split(':');
6363
dbConnection = new MySqlConnection(string.Format(
6464
"Server={0}; Port={1}; Database={2}; Uid={3}; Pwd={4};",
6565
host[0],
6666
host.Length == 1 ? "3306" : host[1],
67-
TShock.Config.MySqlDbName,
68-
TShock.Config.MySqlUsername,
69-
TShock.Config.MySqlPassword
67+
TShock.Config.Settings.MySqlDbName,
68+
TShock.Config.Settings.MySqlUsername,
69+
TShock.Config.Settings.MySqlPassword
7070
));
7171

7272
break;
@@ -171,16 +171,16 @@ public void InfiniteSigns_SignDataImport(
171171

172172
IDbConnection dbConnection = null;
173173
try {
174-
switch (TShock.Config.StorageType.ToLower()) {
174+
switch (TShock.Config.Settings.StorageType.ToLower()) {
175175
case "mysql":
176-
string[] host = TShock.Config.MySqlHost.Split(':');
176+
string[] host = TShock.Config.Settings.MySqlHost.Split(':');
177177
dbConnection = new MySqlConnection(string.Format(
178178
"Server={0}; Port={1}; Database={2}; Uid={3}; Pwd={4};",
179179
host[0],
180180
host.Length == 1 ? "3306" : host[1],
181-
TShock.Config.MySqlDbName,
182-
TShock.Config.MySqlUsername,
183-
TShock.Config.MySqlPassword
181+
TShock.Config.Settings.MySqlDbName,
182+
TShock.Config.Settings.MySqlUsername,
183+
TShock.Config.Settings.MySqlPassword
184184
));
185185

186186
break;

0 commit comments

Comments
 (0)