diff --git a/eco-api/src/main/java/com/willfp/eco/core/registry/Registry.java b/eco-api/src/main/java/com/willfp/eco/core/registry/Registry.java index 3c09fd1f..e5c77ce3 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/registry/Registry.java +++ b/eco-api/src/main/java/com/willfp/eco/core/registry/Registry.java @@ -95,7 +95,7 @@ public class Registry { * Clear the registry. */ public void clear() { - for (T value : registry.values()) { + for (T value : Set.copyOf(registry.values())) { remove(value); } }