Read extra data for kill portal

This commit is contained in:
Lucas Nicodemus 2020-05-18 00:00:55 -07:00
parent 0a95457a7e
commit 92f8095277
No known key found for this signature in database
GPG key ID: A07BD9023D1664DB

View file

@ -3196,6 +3196,7 @@ namespace TShockAPI
private static bool HandleKillPortal(GetDataHandlerArgs args)
{
short projectileIndex = args.Data.ReadInt16();
args.Data.ReadInt8(); // Read byte projectile AI
Projectile projectile = Main.projectile[projectileIndex];
if (projectile != null && projectile.active)