diff options
| author | shedaniel <daniel@shedaniel.me> | 2023-05-30 01:24:42 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2023-05-30 01:24:42 +0800 |
| commit | d0f07b4adfbd6a8e7424b821cda0143eba401ae9 (patch) | |
| tree | ff8d936b43142d8b390763e3060d266c7f6eb840 /runtime | |
| parent | c2d352636f871631b1f4d4622b6c28daffef5541 (diff) | |
| parent | 0ae65bad2abca0ec8bc5f9fe36678450f79bcef9 (diff) | |
| download | RoughlyEnoughItems-d0f07b4adfbd6a8e7424b821cda0143eba401ae9.tar.gz RoughlyEnoughItems-d0f07b4adfbd6a8e7424b821cda0143eba401ae9.tar.bz2 RoughlyEnoughItems-d0f07b4adfbd6a8e7424b821cda0143eba401ae9.zip | |
Merge remote-tracking branch 'shedaniel/9.x-1.19' into 10.x-1.19.3
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/impl/client/util/ThreadCreator.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/util/ThreadCreator.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/util/ThreadCreator.java index b55c0dab6..d49b7c2cd 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/util/ThreadCreator.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/util/ThreadCreator.java @@ -55,6 +55,7 @@ public final class ThreadCreator { return new ForkJoinPool(poolSize, pool -> { ForkJoinWorkerThread worker = ForkJoinPool.defaultForkJoinWorkerThreadFactory.newThread(pool); worker.setName(group().getName() + "-" + worker.getPoolIndex()); + worker.setContextClassLoader(getClass().getClassLoader()); return worker; }, ($, exception) -> { if (!(exception instanceof InterruptedException) && !(exception instanceof CancellationException) && !(exception instanceof ThreadDeath)) { |
