13
0
geforkt von Mirrors/Velocity

Fix player list header/footer not sending translated version (#1186)

Dieser Commit ist enthalten in:
WonderfulPanic 2024-01-17 01:06:05 +12:00 committet von GitHub
Ursprung 08c03aaea2
Commit dab64ebb59
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

@ -418,7 +418,8 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player,
this.playerListHeader = translatedHeader;
this.playerListFooter = translatedFooter;
if (this.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_8) >= 0) {
this.connection.write(HeaderAndFooter.create(header, footer, this.getProtocolVersion()));
this.connection.write(HeaderAndFooter.create(
translatedHeader, translatedFooter, this.getProtocolVersion()));
}
}
@ -1290,4 +1291,4 @@ public class ConnectedPlayer implements MinecraftConnectionAssociation, Player,
connectWithIndication();
}
}
}
}