Return most recent protocol version to 'unsupported' server lists
This commit is contained in:
parent
a642346a2c
commit
b08f1995f6
@ -176,7 +176,7 @@ public class InitialHandler extends PacketHandler implements PendingConnection
|
|||||||
( (BungeeServerInfo) forced ).ping( pingBack, handshake.getProtocolVersion() );
|
( (BungeeServerInfo) forced ).ping( pingBack, handshake.getProtocolVersion() );
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
int protocol = ( Protocol.supportedVersions.contains( handshake.getProtocolVersion() ) ) ? handshake.getProtocolVersion() : -1;
|
int protocol = ( Protocol.supportedVersions.contains( handshake.getProtocolVersion() ) ) ? handshake.getProtocolVersion() : bungee.getProtocolVersion();
|
||||||
pingBack.done( new ServerPing(
|
pingBack.done( new ServerPing(
|
||||||
new ServerPing.Protocol( bungee.getGameVersion(), protocol ),
|
new ServerPing.Protocol( bungee.getGameVersion(), protocol ),
|
||||||
new ServerPing.Players( listener.getMaxPlayers(), bungee.getOnlineCount(), null ),
|
new ServerPing.Players( listener.getMaxPlayers(), bungee.getOnlineCount(), null ),
|
||||||
|
Loading…
Reference in New Issue
Block a user