From 05829dee3b8a7d3e5d902334a05cefd177205a78 Mon Sep 17 00:00:00 2001 From: Patrikkk Date: Thu, 25 Jun 2020 17:08:58 +0200 Subject: [PATCH] Missing parenthesis from an if logic. Fix Tile placement reject. --- TShockAPI/Bouncer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index f3814388..dcc49960 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -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)) {