From 873cba84ebe71e511a525ee66e3b138e5990365d Mon Sep 17 00:00:00 2001 From: Zidonuke Date: Wed, 28 Dec 2011 22:34:59 -0500 Subject: [PATCH] Implemented tileCut tiles bypass range check, Incorrect passwords now resend a better response. Thanks you IRC guys. --- TShockAPI/GetDataHandlers.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 2134918e..fad00819 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -308,6 +308,11 @@ namespace TShockAPI return true; } + else + { + TShock.Utils.ForceKick(args.Player, "Incorrect Account Password, use the password you created with /register"); + return true; + } } else if (!string.IsNullOrEmpty(TShock.Config.ServerPassword)) { @@ -319,9 +324,14 @@ namespace TShockAPI NetMessage.SendData((int)PacketTypes.WorldInfo, args.Player.Index); return true; } + else + { + TShock.Utils.ForceKick(args.Player, "Incorrect Server Password"); + return true; + } } - TShock.Utils.ForceKick(args.Player, "Incorrect Password"); + TShock.Utils.ForceKick(args.Player, "Bad Password Attempt"); return true; } @@ -624,7 +634,7 @@ namespace TShockAPI return true; } - if (tiletype == 127 && type == 0) //Ice Block Kill, Bypass range checks and such + if ((tiletype == 127 || Main.tileCut[tiletype]) && type == 0) //Ice Block Kill, Bypass range checks and such { return false; }