From 1eae5ae6711c8bb47fea4bf8177419bf169eef48 Mon Sep 17 00:00:00 2001 From: Egor Date: Fri, 27 Apr 2018 08:41:57 +0300 Subject: [PATCH] Remove TSPlayer.InitSpawn --- CHANGELOG.md | 1 + TShockAPI/GetDataHandlers.cs | 2 -- TShockAPI/TSPlayer.cs | 2 -- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2bbbd56d..69a833c3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -82,6 +82,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * Fixed the disappearing problem when placing tile entities. (@mistzzt) * Removed the stat tracking system. (@hakusaro) * Fixed erroneous kicks and bans when using `KickOnMediumcoreDeath` and `BanOnMediumcoreDeath` options. (@DankRank) +* Removed `TSPlayer.InitSpawn` field. (@DankRank) ## TShock 4.3.25 * Fixed a critical exploit in the Terraria protocol that could cause massive unpreventable world corruption as well as a number of other problems. Thanks to @bartico6 for reporting. Fixed by the efforts of @QuiCM, @hakusaro, and tips in the right directioon from @bartico6. diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 8a0933a7..fb763465 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -2445,8 +2445,6 @@ namespace TShockAPI if (OnPlayerSpawn(args.Player, args.Data, player, spawnx, spawny)) return true; - args.Player.InitSpawn = true; - if ((Main.ServerSideCharacter) && (args.Player.sX > 0) && (args.Player.sY > 0) && (args.TPlayer.SpawnX > 0) && ((args.TPlayer.SpawnX != args.Player.sX) && (args.TPlayer.SpawnY != args.Player.sY))) { diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index cea65d21..71531fb3 100644 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -228,8 +228,6 @@ namespace TShockAPI /// public DateTime LastThreat { get; set; } - public bool InitSpawn; - /// /// Whether the player should see logs. ///