From 733e82642363da011097666f91048b4da3c051eb Mon Sep 17 00:00:00 2001 From: Draknyte1 Date: Sat, 24 Dec 2016 13:28:40 +1000 Subject: $ Fixed an issue where recipeBuilder() could fail with a null. + Added a new constructor to material/MaterialGenerator.java which allows a true/false on what parts get generated. The old constructor was not removed, it just defaults to true for all parts to be generated. - Removed Lithium-7 Rotors, Screws, Rods, Long Rods, Gears, Bolts & Rings as a result of the previous addition. + Added some missing textures. --- src/Java/gtPlusPlus/core/util/recipe/RecipeUtils.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/Java/gtPlusPlus/core/util') diff --git a/src/Java/gtPlusPlus/core/util/recipe/RecipeUtils.java b/src/Java/gtPlusPlus/core/util/recipe/RecipeUtils.java index d3aebdc759..5951d29c7e 100644 --- a/src/Java/gtPlusPlus/core/util/recipe/RecipeUtils.java +++ b/src/Java/gtPlusPlus/core/util/recipe/RecipeUtils.java @@ -23,7 +23,10 @@ public class RecipeUtils { public static boolean recipeBuilder(Object slot_1, Object slot_2, Object slot_3, Object slot_4, Object slot_5, Object slot_6, Object slot_7, Object slot_8, Object slot_9, ItemStack resultItem){ ArrayList validSlots = new ArrayList(); - + if (resultItem == null){ + return false; + } + Utils.LOG_INFO("Trying to add a recipe for "+resultItem.toString()); String a,b,c,d,e,f,g,h,i; if (slot_1 == null){ a = " ";} else { a = "1";validSlots.add('1');validSlots.add(slot_1);} -- cgit