mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-15 10:45:36 +01:00
Fixed bedrock connection issues on MacOS
This commit is contained in:
parent
4bc610eb96
commit
d5eaf320bc
@ -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 New Issue
Block a user