diff --git a/src/common/nallar/patched/forge/PatchEvent.java b/src/common/nallar/patched/forge/PatchEvent.java index c0a865ac..5bfacb0a 100644 --- a/src/common/nallar/patched/forge/PatchEvent.java +++ b/src/common/nallar/patched/forge/PatchEvent.java @@ -1,12 +1,11 @@ package nallar.patched.forge; -import java.util.concurrent.ConcurrentHashMap; - +import nallar.collections.PartiallySynchronizedMap; import net.minecraftforge.event.Cancelable; import net.minecraftforge.event.Event; public abstract class PatchEvent extends Event { - private static final ConcurrentHashMap annotationMap = new ConcurrentHashMap(); + private static final PartiallySynchronizedMap annotationMap = new PartiallySynchronizedMap(); @Override protected boolean hasAnnotation(Class annotation) { @@ -17,7 +16,7 @@ protected boolean hasAnnotation(Class annotation) { } Class searchClass = cls; while (searchClass != Event.class) { - if (searchClass.isAnnotationPresent(Cancelable.class)) // Forge bug, not fixed. Buggy behaviour may be required for some mods. + if (searchClass.isAnnotationPresent(Cancelable.class)) // TODO: Forge bug, not fixed. Buggy behaviour may be required for some mods. { annotationMap.put(cls, true); return true;