geforkt von Mirrors/Velocity
Merge pull request #383 from Gabik21/fix-status-ping-17
Fix ping response being delayed on 1.7
Dieser Commit ist enthalten in:
Commit
b78b091b33
@ -225,7 +225,7 @@ public class MinecraftConnection extends ChannelInboundHandlerAdapter {
|
|||||||
if (channel.isActive()) {
|
if (channel.isActive()) {
|
||||||
boolean is17 = this.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_8) < 0
|
boolean is17 = this.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_8) < 0
|
||||||
&& this.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_7_2) >= 0;
|
&& this.getProtocolVersion().compareTo(ProtocolVersion.MINECRAFT_1_7_2) >= 0;
|
||||||
if (is17) {
|
if (is17 && this.getState() != StateRegistry.STATUS) {
|
||||||
channel.eventLoop().execute(() -> {
|
channel.eventLoop().execute(() -> {
|
||||||
// 1.7.x versions have a race condition with switching protocol states, so just explicitly
|
// 1.7.x versions have a race condition with switching protocol states, so just explicitly
|
||||||
// close the connection after a short while.
|
// close the connection after a short while.
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren