Skip to content

Commit e7a2b83

Browse files
committed
fix resource loader deadlock
1 parent 42de8b2 commit e7a2b83

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/api/java/baritone/api/utils/BlockOptionalMeta.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
import java.util.*;
6767
import java.util.concurrent.CompletableFuture;
6868
import java.util.concurrent.Executor;
69+
import java.util.concurrent.ForkJoinPool;
6970
import java.util.regex.Matcher;
7071
import java.util.regex.Pattern;
7172
import java.util.stream.Collectors;
@@ -324,7 +325,7 @@ public static CompletableFuture<RegistryAccess> load() {
324325
layeredRegistryAccess,
325326
pendingTags,
326327
closeableResourceManager,
327-
Minecraft.getInstance()
328+
ForkJoinPool.commonPool()
328329
).thenApply(r -> r.layers().compositeAccess());
329330
}
330331
}

0 commit comments

Comments
 (0)