Fix bug causing NPE if non-whitelisted player joins an FML server without FML installed

This commit is contained in:
Christian committed 2012-09-21 10:12:39 -04:00
1 parent e9cfd10e39
commit fbc7a5c063
1 file changed
+6
@@ -120,6 +120,12 @@ public class FMLNetworkHandler
netLoginHandler.completeConnection("You don't have FML installed, you cannot connect to this server");
return;
}
else
{
// Vanilla kicked us for some reason - bye now!
FMLLog.fine("Connection from %s was closed by vanilla minecraft", userName);
return;
}
}
switch (loginStates.get(netLoginHandler))