From a5aa9231239926f361b7246651e32144bbf28dda Mon Sep 17 00:00:00 2001 From: Deathmax Date: Fri, 13 Jan 2012 17:41:14 +0800 Subject: [PATCH] Workaround for Skeletron Prime's projectiles triggering disables. --- TShockAPI/GetDataHandlers.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index a6c11eac..04d7b687 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1595,9 +1595,9 @@ namespace TShockAPI return true; } - int type = Main.projectile[index].type; + var type = Main.projectile[index].type; - if (args.Player.Index != Main.projectile[index].owner) + if (args.Player.Index != Main.projectile[index].owner && type != 102 && type != 100) // workaround for skeletron prime projectiles { args.Player.Disable(); args.Player.RemoveProjectile(ident, owner); @@ -1610,7 +1610,7 @@ namespace TShockAPI return true; } - if (TShock.CheckProjectilePermission(args.Player, index, type)) + if (TShock.CheckProjectilePermission(args.Player, index, type) && type != 102 && type != 100) { args.Player.Disable(); args.Player.RemoveProjectile(ident, owner);