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

Set datagram type from EventLoops

Dieser Commit ist enthalten in:
RednedEpic 2022-10-29 22:42:38 -05:00
Ursprung a133308f51
Commit 86ebfbbc6e

Datei anzeigen

@ -64,7 +64,7 @@ public final class GeyserServer {
private ServerBootstrap createBootstrap(EventLoopGroup group) { private ServerBootstrap createBootstrap(EventLoopGroup group) {
return new ServerBootstrap() return new ServerBootstrap()
.channelFactory(RakChannelFactory.server(NioDatagramChannel.class)) .channelFactory(RakChannelFactory.server(EventLoops.getChannelType().getDatagramChannel()))
.option(RakChannelOption.RAK_ADVERTISEMENT, bedrockPong().toByteBuf()) .option(RakChannelOption.RAK_ADVERTISEMENT, bedrockPong().toByteBuf())
.group(group) .group(group)
.childHandler(new GeyserServerInitializer(this.geyser)); .childHandler(new GeyserServerInitializer(this.geyser));