13
0
geforkt von Mirrors/Velocity

Fix tab list clearing bug.

Fixes regression introduced in 5da085d
Dieser Commit ist enthalten in:
Andrew Steinborn 2020-12-07 02:28:03 -05:00
Ursprung 5da085d82f
Commit 2a5bb1e487

Datei anzeigen

@ -119,11 +119,6 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
ConnectedPlayer(VelocityServer server, GameProfile profile, MinecraftConnection connection,
@Nullable InetSocketAddress virtualHost, boolean onlineMode) {
this.server = server;
if (connection.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_8) >= 0) {
this.tabList = new VelocityTabList(this);
} else {
this.tabList = new VelocityTabListLegacy(this);
}
this.profile = profile;
this.connection = connection;
this.virtualHost = virtualHost;
@ -131,6 +126,12 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player {
this.connectionPhase = connection.getType().getInitialClientPhase();
this.knownChannels = CappedSet.create(MAX_PLUGIN_CHANNELS);
this.onlineMode = onlineMode;
if (connection.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_8) >= 0) {
this.tabList = new VelocityTabList(this);
} else {
this.tabList = new VelocityTabListLegacy(this);
}
}
@Override