From 673359653fc59457ae3d22dbfd5ecb2d2093e53d Mon Sep 17 00:00:00 2001 From: ricky Date: Wed, 8 Jun 2011 18:46:01 +1000 Subject: [PATCH] Kick for using Dirt Rod now checks if player is imure to kicking Remove nades and added sticky bombs for explosives thrown check --- TShockAPI/TShock.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 46a27eb1..046871b3 100755 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -387,7 +387,7 @@ namespace TShockAPI byte owner = br.ReadByte(); byte type = br.ReadByte(); - if (type == 29 || type == 28 || type == 30) + if (type == 29 || type == 28 || type == 37) { return Tools.HandleExplosivesUser(e.Msg.whoAmI, "Throwing an explosive device."); } @@ -436,8 +436,7 @@ namespace TShockAPI if (Main.player[e.Msg.whoAmI].selectedItem == 0x72) //Dirt Rod { - Tools.ForceKick(e.Msg.whoAmI, "Using dirt rod"); - return true; + return Tools.Kick(e.Msg.whoAmI, "Using dirt rod"); } int plyX = Math.Abs((int)Main.player[e.Msg.whoAmI].position.X / 16);