Don't cancel custom query answer

This commit is contained in:
Nassim Jahnke 2023-09-25 08:56:26 +10:00
parent ed1852ba40
commit 270d28f259
No known key found for this signature in database
GPG Key ID: EF6771C01F6EF02F

View File

@ -127,7 +127,6 @@ public final class Protocol1_20_2To1_20 extends AbstractProtocol<ClientboundPack
configurationState.setBridgePhase(BridgePhase.CONFIGURATION); configurationState.setBridgePhase(BridgePhase.CONFIGURATION);
configurationState.sendQueuedPackets(wrapper.user()); configurationState.sendQueuedPackets(wrapper.user());
}); });
cancelServerbound(State.LOGIN, ServerboundLoginPackets.CUSTOM_QUERY_ANSWER.getId());
registerServerbound(State.CONFIGURATION, ServerboundConfigurationPackets1_20_2.FINISH_CONFIGURATION.getId(), -1, wrapper -> { registerServerbound(State.CONFIGURATION, ServerboundConfigurationPackets1_20_2.FINISH_CONFIGURATION.getId(), -1, wrapper -> {
wrapper.cancel(); wrapper.cancel();