diff --git a/src/main/java/com/simibubi/create/foundation/data/CreateRegistrate.java b/src/main/java/com/simibubi/create/foundation/data/CreateRegistrate.java index b50e38bd3..1eda3db41 100644 --- a/src/main/java/com/simibubi/create/foundation/data/CreateRegistrate.java +++ b/src/main/java/com/simibubi/create/foundation/data/CreateRegistrate.java @@ -2,6 +2,7 @@ package com.simibubi.create.foundation.data; import static com.simibubi.create.foundation.data.TagGen.pickaxeOnly; +import java.util.Collections; import java.util.IdentityHashMap; import java.util.Map; import java.util.function.BiConsumer; @@ -52,7 +53,7 @@ import net.minecraftforge.fml.DistExecutor; import net.minecraftforge.registries.RegistryObject; public class CreateRegistrate extends AbstractRegistrate { - private static final Map, RegistryObject> TAB_LOOKUP = new IdentityHashMap<>(); + private static final Map, RegistryObject> TAB_LOOKUP = Collections.synchronizedMap(new IdentityHashMap<>()); @Nullable protected Function currentTooltipModifierFactory;