From b3957096c8269f5f8512d6223532ddb9f7173c6b Mon Sep 17 00:00:00 2001 From: Jack McKalling <14236702+Jack-McKalling@users.noreply.github.com> Date: Fri, 2 Jan 2026 14:27:41 +0100 Subject: [PATCH 1/2] Fix formatting of some exception messages CraftingJob.java (1) --- .../cyclops/integratedcrafting/api/crafting/CraftingJob.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/cyclops/integratedcrafting/api/crafting/CraftingJob.java b/src/main/java/org/cyclops/integratedcrafting/api/crafting/CraftingJob.java index 0658655a..190a0714 100644 --- a/src/main/java/org/cyclops/integratedcrafting/api/crafting/CraftingJob.java +++ b/src/main/java/org/cyclops/integratedcrafting/api/crafting/CraftingJob.java @@ -153,7 +153,7 @@ public void addToIngredientsStorageBuffer(IngredientComponent ingre } T remaining = new IngredientComponentStorageSlottedCollectionWrapper<>(new IngredientList<>(ingredientComponent, instances), Integer.MAX_VALUE, Integer.MAX_VALUE).insert(instance, false); if (!matcher.isEmpty(remaining)) { - throw new IllegalStateException(String.format("Unable to insert %s into the crafting job buffer, remaining: ", instances, remaining)); + throw new IllegalStateException(String.format("Unable to insert %s into the crafting job buffer, remaining: %s", instances, remaining)); } } From 50e4496d605a8a58458525e42cf5edba1cdef95c Mon Sep 17 00:00:00 2001 From: Jack McKalling <14236702+Jack-McKalling@users.noreply.github.com> Date: Fri, 2 Jan 2026 14:33:53 +0100 Subject: [PATCH 2/2] Fix formatting of some exception messages CraftingHelpers.java (2) --- .../cyclops/integratedcrafting/core/CraftingHelpers.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/cyclops/integratedcrafting/core/CraftingHelpers.java b/src/main/java/org/cyclops/integratedcrafting/core/CraftingHelpers.java index d546747f..9a6c1a6a 100644 --- a/src/main/java/org/cyclops/integratedcrafting/core/CraftingHelpers.java +++ b/src/main/java/org/cyclops/integratedcrafting/core/CraftingHelpers.java @@ -1169,9 +1169,9 @@ public static List getIngredientRecipeInputs(IIngredientComponentStora for (T instance : inputInstances) { T remaining = storage.insert(instance, false); if (!matcher.isEmpty(remaining)) { - throw new IllegalStateException("Extraction for a crafting recipe failed" + + throw new IllegalStateException(String.format("Extraction for a crafting recipe failed " + "due to inconsistent insertion behaviour by destination in simulation " + - "and non-simulation: " + storage + ". Lost: " + remaining); + "and non-simulation: %s. Lost: %s", storage, remaining)); } } } @@ -1609,9 +1609,9 @@ public static boolean insertIngredientCrafting(IngredientComponent for (T instance : failedInstances) { T remaining = storageFallback.insert(instance, false); if (!matcher.isEmpty(remaining)) { - throw new IllegalStateException("Insertion for a crafting recipe failed" + + throw new IllegalStateException(String.format("Insertion for a crafting recipe failed " + "due to inconsistent insertion behaviour by destination in simulation " + - "and non-simulation: " + capabilityProvider + ". Lost: " + instances); + "and non-simulation: %s. Lost: %s", capabilityProvider, instances)); } }