Rejig forced hosts some more - closes #927

This commit is contained in:
md_5 2014-03-13 13:32:48 +11:00
parent 227301ec73
commit 72cadac76e

View File

@ -15,7 +15,7 @@ public abstract class AbstractReconnectHandler implements ReconnectHandler
if ( server == null )
{
server = getStoredServer( player );
if ( server == null )
if ( server == null || player.getPendingConnection().getListener().isForceDefault() )
{
server = ProxyServer.getInstance().getServerInfo( player.getPendingConnection().getListener().getDefaultServer() );
}
@ -35,7 +35,7 @@ public abstract class AbstractReconnectHandler implements ReconnectHandler
String forced = con.getListener().getForcedHosts().get( con.getVirtualHost().getHostString() );
if ( forced == null || con.getListener().isForceDefault() )
if ( forced == null )
{
forced = con.getListener().getDefaultServer();
}