mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2025-02-16 19:59:58 -05:00
Fixed bedrock connection issues on MacOS
This commit is contained in:
parent
4bc610eb96
commit
d5eaf320bc
1 changed files with 2 additions and 1 deletions
|
@ -45,10 +45,11 @@ public class BedrockProxyConnection extends ProxyConnection {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void initialize(final ChannelType channelType, final Bootstrap bootstrap) {
|
||||
public void initialize(ChannelType channelType, final Bootstrap bootstrap) {
|
||||
if (!DatagramChannel.class.isAssignableFrom(channelType.udpClientChannelClass())) {
|
||||
throw new IllegalArgumentException("Channel type must be a DatagramChannel");
|
||||
}
|
||||
if (channelType == ChannelType.KQUEUE) channelType = ChannelType.NIO; // KQueue doesn't work for Bedrock for some reason
|
||||
final Class<? extends DatagramChannel> channelClass = (Class<? extends DatagramChannel>) channelType.udpClientChannelClass();
|
||||
|
||||
bootstrap
|
||||
|
|
Loading…
Reference in a new issue