Missing parenthesis from an if logic. Fix Tile placement reject.
This commit is contained in:
parent
eee7fac1a8
commit
05829dee3b
1 changed files with 1 additions and 1 deletions
|
|
@ -463,7 +463,7 @@ namespace TShockAPI
|
|||
}
|
||||
|
||||
//make sure it isnt a snake coil related edit so it doesnt spam debug logs with range check failures
|
||||
if ((action == EditAction.PlaceTile && editData != TileID.MysticSnakeRope) || (action == EditAction.KillTile && tile.type != TileID.MysticSnakeRope) && !args.Player.IsInRange(tileX, tileY))
|
||||
if (((action == EditAction.PlaceTile && editData != TileID.MysticSnakeRope) || (action == EditAction.KillTile && tile.type != TileID.MysticSnakeRope)) && !args.Player.IsInRange(tileX, tileY))
|
||||
{
|
||||
if (action == EditAction.PlaceTile && (editData == TileID.Rope || editData == TileID.SilkRope || editData == TileID.VineRope || editData == TileID.WebRope || editData == TileID.MysticSnakeRope))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue