Fixed MagicalIceBlock checks
This commit is contained in:
parent
6050f23a01
commit
9948239cbf
1 changed files with 2 additions and 6 deletions
|
|
@ -2055,13 +2055,9 @@ 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 != (action == EditAction.PlaceTile ? selectedItem.createTile : selectedItem.createWall))
|
if (!(selectedItem.netID == ItemID.IceRod && editData == TileID.MagicalIceBlock) &&
|
||||||
|
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