aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2023-05-30 01:24:42 +0800
committershedaniel <daniel@shedaniel.me>2023-05-30 01:24:42 +0800
commitd0f07b4adfbd6a8e7424b821cda0143eba401ae9 (patch)
treeff8d936b43142d8b390763e3060d266c7f6eb840 /runtime/src/main
parentc2d352636f871631b1f4d4622b6c28daffef5541 (diff)
parent0ae65bad2abca0ec8bc5f9fe36678450f79bcef9 (diff)
downloadRoughlyEnoughItems-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/src/main')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/util/ThreadCreator.java1
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)) {