From 9deb1e9a44c7b029cd070a9d0ed18d6069a3081f Mon Sep 17 00:00:00 2001 From: high Date: Mon, 6 Jun 2011 20:09:20 -0400 Subject: [PATCH] Shank forgot braces around a ban if statement --- TShockAPI/TShock.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 6bc85336..76235f08 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -215,9 +215,12 @@ namespace TShockAPI int tileY = Math.Abs(y / 16); if ((Math.Abs(plyX - tileX) > 6) || (Math.Abs(plyY - tileY) > 6)) + { TShock.Ban(e.Msg.whoAmI, "Placing impossible to place blocks."); - Tools.Broadcast(Main.player[e.Msg.whoAmI].name + " was banned for placing impossible to place blocks."); - e.Handled = true; + Tools.Broadcast(Main.player[e.Msg.whoAmI].name + + " was banned for placing impossible to place blocks."); + e.Handled = true; + } } if (type == 0 || type == 1)