MCPcopy Create free account
hub / github.com/ViaVersion/ViaProxy / loadNetty

Method loadNetty

src/main/java/net/raphimc/viaproxy/ViaProxy.java:312–319  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

310 }
311
312 private static void loadNetty() {
313 ResourceLeakDetector.setLevel(ResourceLeakDetector.Level.DISABLED);
314 if (System.getProperty("io.netty.allocator.type") == null) {
315 System.setProperty("io.netty.allocator.type", PlatformDependent.isAndroid() ? "unpooled" : "pooled");
316 }
317 MCPipeline.useOptimizedPipeline();
318 CLIENT_CHANNELS = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE);
319 }
320
321 public static File getCwd() {
322 return CWD;

Callers 1

injectedMainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected