diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index bc2610fe..701c5952 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1319,7 +1319,7 @@ namespace TShockAPI var cur = args.Data.ReadInt16(); var max = args.Data.ReadInt16(); - if (OnPlayerHP(plr, cur, max)) + if (OnPlayerHP(plr, cur, max) || cur <= 0) return true; if (args.Player.FirstMaxHP == 0) @@ -1328,7 +1328,7 @@ namespace TShockAPI if (cur < 0 || cur > 500 || max < 100 || max > 500) //Abnormal values have the potential to cause infinite loops in the server. { TShock.Utils.ForceKick(args.Player, "Crash Exploit Attempt", true); - return false; + return true; } if (args.Player.IsLoggedIn) diff --git a/TShockAPI/TSPlayer.cs b/TShockAPI/TSPlayer.cs index 6253d2da..557b18b1 100755 --- a/TShockAPI/TSPlayer.cs +++ b/TShockAPI/TSPlayer.cs @@ -163,8 +163,6 @@ namespace TShockAPI /// public bool DisplayLogs = true; - public Vector2 oldSpawn = Vector2.Zero; - /// /// The last player that the player whispered with (to or from). /// @@ -217,8 +215,6 @@ namespace TShockAPI /// public bool mute; - public bool TpLock; - private Player FakePlayer; public bool RequestedSection;