mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 04:09:51 +00:00
A full rewrite and redesign of the library that offers much better performance, new features and fixes all previous design flaws See the migration guide here: https://gist.github.com/PaintNinja/ad82c224aecee25efac1ea3e2cf19b91 Co-authored-by: Paint_Ninja <[email protected]>
11 lines
455 B
Diff
11 lines
455 B
Diff
--- a/net/minecraft/SharedConstants.java
|
|
+++ b/net/minecraft/SharedConstants.java
|
|
@@ -175,6 +_,7 @@
|
|
}
|
|
|
|
static {
|
|
+ if (System.getProperty("io.netty.leakDetection.level") == null) // Forge: allow level to be manually specified
|
|
ResourceLeakDetector.setLevel(NETTY_LEAK_DETECTION);
|
|
CommandSyntaxException.ENABLE_COMMAND_STACK_TRACES = false;
|
|
CommandSyntaxException.BUILT_IN_EXCEPTIONS = new BrigadierExceptions();
|