aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main/java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2022-06-19 19:09:37 +0800
committershedaniel <daniel@shedaniel.me>2023-05-29 21:01:19 +0800
commitecf6c7adb1491b4de04b381fce42b193cc22cc13 (patch)
treea763141a40e0055435a75e4e0f3cf77449797749 /runtime/src/main/java
parent37e4fbef709ae0e8badcd3f2315c7404c9ae70d0 (diff)
downloadRoughlyEnoughItems-ecf6c7adb1491b4de04b381fce42b193cc22cc13.tar.gz
RoughlyEnoughItems-ecf6c7adb1491b4de04b381fce42b193cc22cc13.tar.bz2
RoughlyEnoughItems-ecf6c7adb1491b4de04b381fce42b193cc22cc13.zip
Fix DisplayRegistry crash
Diffstat (limited to 'runtime/src/main/java')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/registry/display/DisplayRegistryImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/registry/display/DisplayRegistryImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/registry/display/DisplayRegistryImpl.java
index c8a35f540..db0138420 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/client/registry/display/DisplayRegistryImpl.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/registry/display/DisplayRegistryImpl.java
@@ -57,7 +57,7 @@ import java.util.function.UnaryOperator;
public class DisplayRegistryImpl extends RecipeManagerContextImpl<REIClientPlugin> implements DisplayRegistry {
private final WeakHashMap<Display, Object> displaysBase = new WeakHashMap<>();
- private final Map<CategoryIdentifier<?>, List<Display>> displays = new ConcurrentHashMap<>();
+ private final Map<CategoryIdentifier<?>, DisplaysList> displays = new ConcurrentHashMap<>();
private final Map<CategoryIdentifier<?>, List<Display>> unmodifiableDisplays;
private final Map<CategoryIdentifier<?>, List<DynamicDisplayGenerator<?>>> displayGenerators = new ConcurrentHashMap<>();
private final List<DynamicDisplayGenerator<?>> globalDisplayGenerators = new ArrayList<>();
@@ -162,7 +162,7 @@ public class DisplayRegistryImpl extends RecipeManagerContextImpl<REIClientPlugi
}
}
- displays.computeIfAbsent(display.getCategoryIdentifier(), location -> new DisplaysList().synchronizedList)
+ displays.computeIfAbsent(display.getCategoryIdentifier(), location -> new DisplaysList())
.add(display);
displayCount.increment();
if (origin != null) {