Actually test it

This commit is contained in:
Camotoy 2024-10-14 15:39:56 -04:00
parent 7bd11ee3c3
commit ba0fc37b0e
No known key found for this signature in database
GPG key ID: 7EEFB66FE798081F

View file

@ -1007,7 +1007,11 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource {
if (protocol.getInboundState() == ProtocolState.CONFIGURATION) {
if (packet instanceof ClientboundFinishConfigurationPacket) {
// Prevent
GeyserSession.this.ensureInEventLoop(() -> GeyserSession.this.sendDownstreamPacket(new ServerboundFinishConfigurationPacket()));
GeyserSession.this.ensureInEventLoop(() -> session.getChannel().eventLoop().execute(() -> {
session.switchInboundState(() -> protocol.setInboundState(ProtocolState.GAME));
session.send(new ServerboundFinishConfigurationPacket());
session.switchOutboundState(() -> protocol.setOutboundState(ProtocolState.GAME));
}));
return;
}
}