Fix kick caused by drinking super mana potions
This commit is contained in:
parent
7af6d72bc3
commit
0d8d83b165
1 changed files with 0 additions and 6 deletions
|
|
@ -1364,12 +1364,6 @@ namespace TShockAPI
|
||||||
if (args.Player.FirstMaxMP == 0)
|
if (args.Player.FirstMaxMP == 0)
|
||||||
args.Player.FirstMaxMP = max;
|
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)
|
if (args.Player.IsLoggedIn)
|
||||||
{
|
{
|
||||||
args.Player.TPlayer.statMana = cur;
|
args.Player.TPlayer.statMana = cur;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue