Allow network leak detection level to be specified (#5067)

This commit is contained in:
Ben Staddon 2018-08-16 21:18:25 +01:00 committed by LexManos
parent 222a110eb1
commit f1dfb80931

View file

@ -0,0 +1,10 @@
--- ../src-base/minecraft/net/minecraft/util/ChatAllowedCharacters.java
+++ ../src-work/minecraft/net/minecraft/util/ChatAllowedCharacters.java
@@ -31,6 +31,7 @@
static
{
+ if (System.getProperty("io.netty.leakDetection.level") == null) // Forge: allow level to be manually specified
ResourceLeakDetector.setLevel(field_184877_a);
}
}