mirror of
https://github.com/GeyserMC/Geyser.git
synced 2024-08-14 23:57:35 +00: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) {
|
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));
|
||||||
|
|
Loading…
Reference in a new issue