From cf018ebd133d464a3ee7b91361b02c416eb2e052 Mon Sep 17 00:00:00 2001 From: CoderCow Date: Tue, 2 Jul 2013 12:15:10 +0200 Subject: [PATCH] Fixed /overidessi not working properly if DisableLoginBeforeJoin was false. --- TShockAPI/GetDataHandlers.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TShockAPI/GetDataHandlers.cs b/TShockAPI/GetDataHandlers.cs index 1cf7d702..b79c0e12 100644 --- a/TShockAPI/GetDataHandlers.cs +++ b/TShockAPI/GetDataHandlers.cs @@ -1381,11 +1381,13 @@ namespace TShockAPI } else if (!TShock.CheckInventory(args.Player)) { + args.Player.LoginFailsBySsi = true; args.Player.SendMessage("Login Failed, Please fix the above errors then /login again.", Color.Cyan); args.Player.IgnoreActionsForClearingTrashCan = true; return true; } } + args.Player.LoginFailsBySsi = false; if (group.HasPermission(Permissions.ignorestackhackdetection)) args.Player.IgnoreActionsForCheating = "none";