Fix kick caused by drinking super mana potions

This commit is contained in:
MarioE 2014-02-17 16:52:10 -05:00
parent 7af6d72bc3
commit 0d8d83b165

View file

@ -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;