diff --git a/fabric/src/main/java/com/illusivesoulworks/elytraslot/platform/FabricPlatform.java b/fabric/src/main/java/com/illusivesoulworks/elytraslot/platform/FabricPlatform.java index 06fe7ef..8d5539b 100644 --- a/fabric/src/main/java/com/illusivesoulworks/elytraslot/platform/FabricPlatform.java +++ b/fabric/src/main/java/com/illusivesoulworks/elytraslot/platform/FabricPlatform.java @@ -21,6 +21,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; import net.fabricmc.loader.api.FabricLoader; import net.minecraft.core.Registry; import net.minecraft.core.registries.BuiltInRegistries; @@ -30,7 +31,7 @@ public class FabricPlatform implements IPlatform { - private static final Map CACHE = new HashMap<>(); + private static final Map CACHE = new ConcurrentHashMap<>(); @Override public boolean isModLoaded(String id) { diff --git a/forge/src/main/java/com/illusivesoulworks/elytraslot/platform/ForgePlatform.java b/forge/src/main/java/com/illusivesoulworks/elytraslot/platform/ForgePlatform.java index 795c9a5..67f7dfa 100644 --- a/forge/src/main/java/com/illusivesoulworks/elytraslot/platform/ForgePlatform.java +++ b/forge/src/main/java/com/illusivesoulworks/elytraslot/platform/ForgePlatform.java @@ -21,6 +21,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; import javax.annotation.Nonnull; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.item.Item; @@ -29,7 +30,7 @@ public class ForgePlatform implements IPlatform { - private static final Map CACHE = new HashMap<>(); + private static final Map CACHE = new ConcurrentHashMap<>(); @Override public boolean isModLoaded(String id) { diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 37aef8d..2617362 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/quilt/src/main/java/com/illusivesoulworks/elytraslot/platform/QuiltPlatform.java b/quilt/src/main/java/com/illusivesoulworks/elytraslot/platform/QuiltPlatform.java index 87e1231..74bd0d8 100644 --- a/quilt/src/main/java/com/illusivesoulworks/elytraslot/platform/QuiltPlatform.java +++ b/quilt/src/main/java/com/illusivesoulworks/elytraslot/platform/QuiltPlatform.java @@ -21,6 +21,7 @@ import java.util.HashMap; import java.util.Map; import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; import net.minecraft.core.registries.BuiltInRegistries; import net.minecraft.resources.ResourceLocation; import net.minecraft.world.item.Item; @@ -29,7 +30,7 @@ public class QuiltPlatform implements IPlatform { - private static final Map CACHE = new HashMap<>(); + private static final Map CACHE = new ConcurrentHashMap<>(); @Override public boolean isModLoaded(String id) {