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)); } } 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)); } }