From 54b2bbb92ecd2e838a17dae8e4d6e986976c39ff Mon Sep 17 00:00:00 2001 From: Trever Fischer Date: Mon, 27 Feb 2012 11:34:41 -0500 Subject: [PATCH] Dont accept a 300 response --- src/main/java/us/camin/JoinListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/us/camin/JoinListener.java b/src/main/java/us/camin/JoinListener.java index 4431c83..db2db41 100644 --- a/src/main/java/us/camin/JoinListener.java +++ b/src/main/java/us/camin/JoinListener.java @@ -112,7 +112,7 @@ public class JoinListener extends PlayerListener { log.info("Authing "+user+" against "+authServer); HttpURLConnection conn = (HttpURLConnection)authServer.openConnection(); int code = conn.getResponseCode(); - if (code >= 200 && code <= 300) + if (code >= 200 && code < 300) return true; return false; }