diff --git a/xplat/src/main/java/dev/emi/emi/registry/EmiTags.java b/xplat/src/main/java/dev/emi/emi/registry/EmiTags.java index ca602f3a..ee5e5958 100644 --- a/xplat/src/main/java/dev/emi/emi/registry/EmiTags.java +++ b/xplat/src/main/java/dev/emi/emi/registry/EmiTags.java @@ -106,7 +106,7 @@ public static EmiIngredient getIngredient(Class clazz, List sta if (keys != null) { for (TagKey key : keys) { List values = (List) TAG_CONTENTS.get(key); - map.keySet().removeAll(values); + values.forEach(map::remove); } } else { keys = Lists.newArrayList(); @@ -117,7 +117,7 @@ public static EmiIngredient getIngredient(Class clazz, List sta continue; } if (map.keySet().containsAll(values)) { - map.keySet().removeAll(values); + values.forEach(map::remove); keys.add(key); } if (map.isEmpty()) {