Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2024-12-25 15:50:12 +01:00
Send the config ack packet
Dieser Commit ist enthalten in:
Ursprung
ea2fac0788
Commit
b69ebe6657
@ -94,6 +94,9 @@ public final class Protocol1_20To1_20_2 extends BackwardsProtocol<ClientboundPac
|
|||||||
registerClientbound(ClientboundPackets1_20_2.START_CONFIGURATION, null, wrapper -> {
|
registerClientbound(ClientboundPackets1_20_2.START_CONFIGURATION, null, wrapper -> {
|
||||||
wrapper.cancel();
|
wrapper.cancel();
|
||||||
// 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
|
// 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
|
||||||
|
final PacketWrapper configAcknowledgedPacket = wrapper.create(ServerboundPackets1_20_2.CONFIGURATION_ACKNOWLEDGED);
|
||||||
|
configAcknowledgedPacket.sendToServer(Protocol1_20To1_20_2.class);
|
||||||
|
|
||||||
wrapper.user().put(new ConfigurationPacketStorage());
|
wrapper.user().put(new ConfigurationPacketStorage());
|
||||||
});
|
});
|
||||||
cancelClientbound(ClientboundPackets1_20_2.PONG_RESPONSE);
|
cancelClientbound(ClientboundPackets1_20_2.PONG_RESPONSE);
|
||||||
@ -151,7 +154,7 @@ public final class Protocol1_20To1_20_2 extends BackwardsProtocol<ClientboundPac
|
|||||||
} else if (id == ServerboundPackets1_19_4.RESOURCE_PACK_STATUS.getId()) {
|
} else if (id == ServerboundPackets1_19_4.RESOURCE_PACK_STATUS.getId()) {
|
||||||
wrapper.setPacketType(ServerboundConfigurationPackets1_20_2.RESOURCE_PACK);
|
wrapper.setPacketType(ServerboundConfigurationPackets1_20_2.RESOURCE_PACK);
|
||||||
} else {
|
} else {
|
||||||
// Can't do (maybe should do?)
|
// TODO Queue
|
||||||
throw CancelException.generate();
|
throw CancelException.generate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren