diff --git a/src/main/java/com/ferreusveritas/dynamictrees/api/resource/ResourceCollector.java b/src/main/java/com/ferreusveritas/dynamictrees/api/resource/ResourceCollector.java index 5d5c75804..e2172bde6 100644 --- a/src/main/java/com/ferreusveritas/dynamictrees/api/resource/ResourceCollector.java +++ b/src/main/java/com/ferreusveritas/dynamictrees/api/resource/ResourceCollector.java @@ -20,11 +20,11 @@ public interface ResourceCollector { void clear(); static ResourceCollector unordered() { - return new SimpleResourceCollector<>(Maps::newConcurrentMap); + return new SimpleResourceCollector<>(Maps::newHashMap); } static ResourceCollector ordered() { - return new SimpleResourceCollector<>(ConcurrentSkipListMap::new); + return new SimpleResourceCollector<>(Maps::newLinkedHashMap); } }