Merge pull request #1408 from Simon311/general-devel

Fix a client crash exploit
This commit is contained in:
Chris 2017-03-11 20:52:05 +10:30 committed by GitHub
commit 047f9e7475

View file

@ -3810,6 +3810,9 @@ namespace TShockAPI
if (buff == 10 && TShock.Config.DisableInvisPvP && args.TPlayer.hostile)
buff = 0;
if (Netplay.Clients[args.TPlayer.whoAmI].State < 2 && (buff == 156 || buff == 47 || buff == 149))
buff = 0;
args.TPlayer.buffType[i] = buff;
if (args.TPlayer.buffType[i] > 0)
{