3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 00:00:41 +01:00

Actually test it

Dieser Commit ist enthalten in:
Camotoy 2024-10-14 15:39:56 -04:00
Ursprung 7bd11ee3c3
Commit ba0fc37b0e
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 7EEFB66FE798081F

Datei anzeigen

@ -1007,7 +1007,11 @@ public class GeyserSession implements GeyserConnection, GeyserCommandSource {
if (protocol.getInboundState() == ProtocolState.CONFIGURATION) { if (protocol.getInboundState() == ProtocolState.CONFIGURATION) {
if (packet instanceof ClientboundFinishConfigurationPacket) { if (packet instanceof ClientboundFinishConfigurationPacket) {
// Prevent // 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; return;
} }
} }