mirror of
https://github.com/PaperMC/Velocity.git
synced 2026-02-17 14:37:43 +01:00
The system properties didn't change.
This commit is contained in:
@@ -38,12 +38,12 @@ public class Velocity {
|
|||||||
// If Velocity's natives are being extracted to a different temporary directory, make sure the
|
// If Velocity's natives are being extracted to a different temporary directory, make sure the
|
||||||
// Netty natives are extracted there as well
|
// Netty natives are extracted there as well
|
||||||
if (System.getProperty("velocity.natives-tmpdir") != null) {
|
if (System.getProperty("velocity.natives-tmpdir") != null) {
|
||||||
System.setProperty("io.netty5.native.workdir", System.getProperty("velocity.natives-tmpdir"));
|
System.setProperty("io.netty.native.workdir", System.getProperty("velocity.natives-tmpdir"));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Disable the resource leak detector by default as it reduces performance. Allow the user to
|
// Disable the resource leak detector by default as it reduces performance. Allow the user to
|
||||||
// override this if desired.
|
// override this if desired.
|
||||||
if (System.getProperty("io.netty5.leakDetection.level") == null) {
|
if (System.getProperty("io.netty.leakDetection.level") == null) {
|
||||||
ResourceLeakDetector.setLevel(Level.DISABLED);
|
ResourceLeakDetector.setLevel(Level.DISABLED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user