Fix 1.17 ping handler (#365)

This commit is contained in:
SuspiciousActivity 2021-06-09 15:14:42 +02:00 committed by GitHub
parent 0ba20299a3
commit cf7c718493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -187,7 +187,9 @@ public final class Protocol1_16_4To1_17 extends BackwardsProtocol<ClientboundPac
wrapper.cancel();
// Plugins expecting a real response will have to handle this accordingly themselves
int id = wrapper.read(Type.INT);
PacketWrapper pongPacket = wrapper.create(ServerboundPackets1_17.PONG);
pongPacket.write(Type.INT, id);
pongPacket.sendToServer(Protocol1_16_4To1_17.class);
});
}