Set datagram type from EventLoops

This commit is contained in:
RednedEpic 2022-10-29 22:42:38 -05:00
parent a133308f51
commit 86ebfbbc6e

View file

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