Skip to content

Commit b69ebe6

Browse files
committed
Send the config ack packet
1 parent ea2fac0 commit b69ebe6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

common/src/main/java/com/viaversion/viabackwards/protocol/protocol1_20to1_20_2/Protocol1_20To1_20_2.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ protected void registerPackets() {
9494
registerClientbound(ClientboundPackets1_20_2.START_CONFIGURATION, null, wrapper -> {
9595
wrapper.cancel();
9696
// TODO: Check whether all the necessary data for the join game packet is always expected by the client or if we need to cache it from the initial login
97+
final PacketWrapper configAcknowledgedPacket = wrapper.create(ServerboundPackets1_20_2.CONFIGURATION_ACKNOWLEDGED);
98+
configAcknowledgedPacket.sendToServer(Protocol1_20To1_20_2.class);
99+
97100
wrapper.user().put(new ConfigurationPacketStorage());
98101
});
99102
cancelClientbound(ClientboundPackets1_20_2.PONG_RESPONSE);
@@ -151,7 +154,7 @@ public void transform(final Direction direction, final State state, final Packet
151154
} else if (id == ServerboundPackets1_19_4.RESOURCE_PACK_STATUS.getId()) {
152155
wrapper.setPacketType(ServerboundConfigurationPackets1_20_2.RESOURCE_PACK);
153156
} else {
154-
// Can't do (maybe should do?)
157+
// TODO Queue
155158
throw CancelException.generate();
156159
}
157160
}

0 commit comments

Comments
 (0)