Kick for using Dirt Rod now checks if player is imure to kicking
Remove nades and added sticky bombs for explosives thrown check
This commit is contained in:
parent
14ec2634fa
commit
673359653f
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue