Clients are no longer able to bypass tile checks
This commit is contained in:
parent
4d98dd4d24
commit
30fcf83fa1
1 changed files with 7 additions and 0 deletions
|
|
@ -2048,6 +2048,13 @@ namespace TShockAPI
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If they aren't selecting the item which creates the correct tile or wall, they're hacking.
|
||||||
|
if (editData != (action == EditAction.PlaceTile ? selectedItem.createTile : selectedItem.createWall))
|
||||||
|
{
|
||||||
|
args.Player.SendTileSquare(tileX, tileY, 4);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
// If they aren't selecting the item which creates the tile or wall, they're hacking.
|
// If they aren't selecting the item which creates the tile or wall, they're hacking.
|
||||||
if ((editData != TileID.MagicalIceBlock
|
if ((editData != TileID.MagicalIceBlock
|
||||||
&& editData != TileID.Rope
|
&& editData != TileID.Rope
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue