Merge branch 'master' of github.com:TShock/TShock
This commit is contained in:
commit
d6a76f76a0
1 changed files with 11 additions and 1 deletions
|
|
@ -466,8 +466,18 @@ namespace TShockAPI
|
||||||
|
|
||||||
bool HandleTileKill(MemoryStream data, GetDataEventArgs e)
|
bool HandleTileKill(MemoryStream data, GetDataEventArgs e)
|
||||||
{
|
{
|
||||||
|
int tilex = data.ReadInt32();
|
||||||
|
int tiley = data.ReadInt32();
|
||||||
|
if (tilex < 0 || tilex >= Main.maxTilesX || tiley < 0 || tiley >= Main.maxTilesY)
|
||||||
|
return false;
|
||||||
|
|
||||||
|
if (Main.tile[tilex, tiley].type != 0x15) //Chest
|
||||||
|
{
|
||||||
|
Tools.Kick(e.Msg.whoAmI, "Tile Kill abuse (" + Main.tile[tilex, tiley].type + ")");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
private void OnGreetPlayer(int who, HandledEventArgs e)
|
private void OnGreetPlayer(int who, HandledEventArgs e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue