mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-18 03:25:18 +00:00
Once the old folder is done, then patches are done. Want to know whats still to do? Look in that folder. Now stop asking.
13 lines
830 B
Diff
13 lines
830 B
Diff
--- ../src-base/minecraft/net/minecraft/util/ClassInheritanceMultiMap.java
|
|
+++ ../src-work/minecraft/net/minecraft/util/ClassInheritanceMultiMap.java
|
|
@@ -13,7 +13,8 @@
|
|
|
|
public class ClassInheritanceMultiMap<T> extends AbstractSet<T>
|
|
{
|
|
- private static final Set < Class<? >> field_181158_a = Sets. < Class<? >> newHashSet();
|
|
+ // Forge: Use concurrent collection to allow creating chunks from multiple threads safely
|
|
+ private static final Set < Class<? >> field_181158_a = java.util.Collections.newSetFromMap(new java.util.concurrent.ConcurrentHashMap<Class<?>, Boolean>());
|
|
private final Map < Class<?>, List<T >> field_180218_a = Maps. < Class<?>, List<T >> newHashMap();
|
|
private final Set < Class<? >> field_180216_b = Sets. < Class<? >> newIdentityHashSet();
|
|
private final Class<T> field_180217_c;
|