From 0d8d83b1653337133c4a0da56bb790dd7e0226bb Mon Sep 17 00:00:00 2001 From: MarioE Date: Mon, 17 Feb 2014 16:52:10 -0500 Subject: [PATCH] Fix kick caused by drinking super mana potions --- TShockAPI/GetDataHandlers.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 33cd9079..4281c703 100755 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1364,12 +1364,6 @@ namespace TShockAPI if (args.Player.FirstMaxMP == 0) args.Player.FirstMaxMP = max; - if (cur < 0 || cur > 400 || max < 0 || max > 200) //Abnormal values have the potential to cause infinite loops in the server. - { - TShock.Utils.ForceKick(args.Player, "Crash Exploit Attempt", true); - return false; - } - if (args.Player.IsLoggedIn) { args.Player.TPlayer.statMana = cur;