Added an extra IceRod check to HandleTile
This commit is contained in:
parent
775c724b44
commit
9974441868
1 changed files with 6 additions and 2 deletions
|
|
@ -2049,9 +2049,13 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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 != (action == EditAction.PlaceTile ? selectedItem.createTile : selectedItem.createWall))
|
||||||
&& editData != (action == EditAction.PlaceTile ? selectedItem.createTile : selectedItem.createWall))
|
|
||||||
{
|
{
|
||||||
|
if (selectedItem.netID == ItemID.IceRod && editData == TileID.MagicalIceBlock)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
args.Player.SendTileSquare(tileX, tileY, 4);
|
args.Player.SendTileSquare(tileX, tileY, 4);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue