Skip to content

Commit

Permalink
Update to 1.4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Itorius committed Oct 15, 2020
1 parent bf69505 commit 876f53f
Show file tree
Hide file tree
Showing 8 changed files with 149 additions and 149 deletions.
2 changes: 1 addition & 1 deletion patches/Terraria/Terraria/Terraria.csproj.patch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
+ <Import Project="../../TerrariaSteamPath.targets" />
<PropertyGroup>
<OutputType>WinExe</OutputType>
<Version>1.4.1.0</Version>
<Version>1.4.1.1</Version>
<Company>Re-Logic</Company>
<Copyright>Copyright © 2020 Re-Logic</Copyright>
<RootNamespace>Terraria</RootNamespace>
Expand Down
2 changes: 1 addition & 1 deletion patches/Terraria/Terraria/UI/FancyErrorPrinter.cs.patch
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

private static void ShowTheBox(string preparedMessage) {
+#if WINDOWS && CLIENT
MessageBox.Show(preparedMessage, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
MessageBox.Show(preparedMessage, "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
+#endif
}
}
Expand Down
8 changes: 4 additions & 4 deletions patches/tModLoader/Terraria/Main.cs.patch
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
public delegate void OnPlayerSelected(PlayerFileData player);
@@ -239,7 +_,7 @@
public static NPCHeadRenderer BossNPCHeadRenderer = null;
public static string versionNumber = "v1.4.1";
public static string versionNumber2 = "v1.4.1";
public static string versionNumber = "v1.4.1.1";
public static string versionNumber2 = "v1.4.1.1";
- public static string SavePath = Program.LaunchParameters.ContainsKey("-savedirectory") ? Program.LaunchParameters["-savedirectory"] : Platform.Get<IPathService>().GetStoragePath("Terraria");
+ public static string SavePath = Program.SavePath;
public static bool AnnouncementBoxDisabled;
Expand Down Expand Up @@ -392,8 +392,8 @@
mouseColorSlider.SetHSL(mouseColor);
mouseBorderColorSlider.SetHSL(MouseBorderColor);
mouseBorderColorSlider.Alpha = (float)(int)MouseBorderColor.A / 255f;
- if (currentValue != 232)
+ if (currentValue != 232 || ModLoader.ModLoader.LastLaunchedTModLoaderVersion != ModLoader.ModLoader.version)
- if (currentValue != 233)
+ if (currentValue != 233 || ModLoader.ModLoader.LastLaunchedTModLoaderVersion != ModLoader.ModLoader.version)
SaveSettings();
}

Expand Down
4 changes: 2 additions & 2 deletions patches/tModLoader/Terraria/MessageBuffer.cs.patch
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@
if (Netplay.Clients[whoAmI].State != 0)
break;

- if (reader.ReadString() == "Terraria" + 232) {
- if (reader.ReadString() == "Terraria" + 233) {
+ string clientVersion = reader.ReadString();
+ ModNet.isModdedClient[whoAmI] = clientVersion == ModLoader.ModLoader.versionedName;
+ if (ModNet.isModdedClient[whoAmI] || clientVersion == "Terraria" + 232 && ModNet.AllowVanillaClients) {
+ if (ModNet.isModdedClient[whoAmI] || clientVersion == "Terraria" + 233 && ModNet.AllowVanillaClients) {
if (string.IsNullOrEmpty(Netplay.ServerPassword)) {
Netplay.Clients[whoAmI].State = 1;
+ if (ModNet.isModdedClient[whoAmI]) {
Expand Down
2 changes: 1 addition & 1 deletion patches/tModLoader/Terraria/NetMessage.cs.patch
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
writer.Write((byte)msgType);
switch (msgType) {
case 1:
- writer.Write("Terraria" + 232);
- writer.Write("Terraria" + 233);
+ writer.Write(ModLoader.ModLoader.versionedName);
break;
case 2:
Expand Down
Loading

0 comments on commit 876f53f

Please sign in to comment.