mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-01-20 15:54:57 +01:00
Actually test it
This commit is contained in:
parent
7bd11ee3c3
commit
ba0fc37b0e
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue