diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-12-24 13:28:40 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-12-24 13:28:40 +1000 |
commit | 733e82642363da011097666f91048b4da3c051eb (patch) | |
tree | 172489cb7b13f692a097e71f94f15c97677af145 /src/Java/gtPlusPlus/core/util | |
parent | 9517bb948d41dfe0fe7a7db7493d083c495076c1 (diff) | |
download | GT5-Unofficial-733e82642363da011097666f91048b4da3c051eb.tar.gz GT5-Unofficial-733e82642363da011097666f91048b4da3c051eb.tar.bz2 GT5-Unofficial-733e82642363da011097666f91048b4da3c051eb.zip |
$ 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.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util')
-rw-r--r-- | src/Java/gtPlusPlus/core/util/recipe/RecipeUtils.java | 5 |
1 files changed, 4 insertions, 1 deletions
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<Object> validSlots = new ArrayList<Object>(); - + 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);} |