From f1dfb809315fd90b5b3ee1e3074cde55328792a2 Mon Sep 17 00:00:00 2001 From: Ben Staddon Date: Thu, 16 Aug 2018 21:18:25 +0100 Subject: [PATCH] Allow network leak detection level to be specified (#5067) --- .../minecraft/util/ChatAllowedCharacters.java.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 patches/minecraft/net/minecraft/util/ChatAllowedCharacters.java.patch diff --git a/patches/minecraft/net/minecraft/util/ChatAllowedCharacters.java.patch b/patches/minecraft/net/minecraft/util/ChatAllowedCharacters.java.patch new file mode 100644 index 000000000..3ae294d26 --- /dev/null +++ b/patches/minecraft/net/minecraft/util/ChatAllowedCharacters.java.patch @@ -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); + } + }