Skip to content

Commit

Permalink
4.18.2-petu
Browse files Browse the repository at this point in the history
Fixed error throwing `ConcurrentModificationException`

Signed-off-by: petulikan1 <[email protected]>

Took 2 hours 24 minutes
  • Loading branch information
petulikan1 committed Jan 18, 2025
1 parent ea4f50c commit 3eb3eb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
#

group = com.wolfyscript.customcrafting
version = 4.18.1-petu
version = 4.18.2-petu
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import org.jetbrains.annotations.NotNull;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

public abstract class ResourceLoader implements Comparable<ResourceLoader>, Keyed {

Expand All @@ -55,7 +56,7 @@ public abstract class ResourceLoader implements Comparable<ResourceLoader>, Keye
private boolean replaceData = false;
private boolean doneLoading = false;

protected final Multimap<CustomRecipe<?>, Dependency> recipeDependencies = Multimaps.newSetMultimap(new HashMap<>(), HashSet::new);
protected final Multimap<CustomRecipe<?>, Dependency> recipeDependencies = Multimaps.newSetMultimap(new ConcurrentHashMap<>(), HashSet::new);
protected final List<VerificationResult<? extends CustomRecipe<?>>> invalidRecipes = new ArrayList<>();
protected final List<NamespacedKey> failedRecipes = new ArrayList<>();
private final Deque<ScheduledPluginIntegrationTask> scheduledPluginIntegrationTasks = new ArrayDeque<>();
Expand Down

0 comments on commit 3eb3eb2

Please sign in to comment.