mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-01-11 04:21:16 +01:00
Set datagram type from EventLoops
This commit is contained in:
parent
a133308f51
commit
86ebfbbc6e
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue