Merge branch 'master' of github.com:TShock/TShock
This commit is contained in:
commit
a4798a35e5
1 changed files with 2 additions and 3 deletions
|
|
@ -345,7 +345,7 @@ namespace TShockAPI
|
||||||
byte owner = br.ReadByte();
|
byte owner = br.ReadByte();
|
||||||
byte type = 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.");
|
return Tools.HandleExplosivesUser(e.Msg.whoAmI, "Throwing an explosive device.");
|
||||||
}
|
}
|
||||||
|
|
@ -394,8 +394,7 @@ namespace TShockAPI
|
||||||
|
|
||||||
if (Main.player[e.Msg.whoAmI].selectedItem == 0x72) //Dirt Rod
|
if (Main.player[e.Msg.whoAmI].selectedItem == 0x72) //Dirt Rod
|
||||||
{
|
{
|
||||||
Tools.ForceKick(e.Msg.whoAmI, "Using dirt rod");
|
return Tools.Kick(e.Msg.whoAmI, "Using dirt rod");
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int plyX = Math.Abs((int)Main.player[e.Msg.whoAmI].position.X / 16);
|
int plyX = Math.Abs((int)Main.player[e.Msg.whoAmI].position.X / 16);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue