From 6d23cc71417f51da5a4dedd91cd0d82fecd7a85e Mon Sep 17 00:00:00 2001 From: Auxilor Date: Sat, 18 Mar 2023 15:17:41 +0000 Subject: [PATCH] Fixed Registry#clear --- .../src/main/java/com/willfp/eco/core/registry/Registry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }