From 8c41102a8fd151b795a2a5a3d34bc32f53186c13 Mon Sep 17 00:00:00 2001 From: yor42 Date: Mon, 18 Nov 2024 13:24:52 +0900 Subject: [PATCH] Fix CME --- .../cn/academy/support/groovyscript/modules/MetalFormer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/cn/academy/support/groovyscript/modules/MetalFormer.java b/src/main/java/cn/academy/support/groovyscript/modules/MetalFormer.java index 649cff3a..4be3dd01 100644 --- a/src/main/java/cn/academy/support/groovyscript/modules/MetalFormer.java +++ b/src/main/java/cn/academy/support/groovyscript/modules/MetalFormer.java @@ -92,7 +92,8 @@ public void clearRefine(){ @GroovyBlacklist public void removeByMode(TileMetalFormer.Mode mode){ - for (MetalFormerRecipes.RecipeObject recipe : MetalFormerRecipes.INSTANCE.getAllRecipes()) { + ArrayList objects = new ArrayList<>(MetalFormerRecipes.INSTANCE.getAllRecipes()); + for (MetalFormerRecipes.RecipeObject recipe : objects) { if (recipe.mode == mode) { this.remove(recipe); }