diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-07-21 19:12:11 +1000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-07-21 19:12:11 +1000 |
commit | ae6844407be97824e2db9355fdcf04608592a7a9 (patch) | |
tree | 44866054203c96608cbe8fa3e3c5bd5b6a94d3b7 /src/Java/gtPlusPlus/api/objects/minecraft/ShapedRecipe.java | |
parent | 06f58135c44414dafdf3c677d2cd69f91b8dd7db (diff) | |
download | GT5-Unofficial-ae6844407be97824e2db9355fdcf04608592a7a9.tar.gz GT5-Unofficial-ae6844407be97824e2db9355fdcf04608592a7a9.tar.bz2 GT5-Unofficial-ae6844407be97824e2db9355fdcf04608592a7a9.zip |
+ Gave Tokens icons.
$ Fixed some invalid recipe logging for recipes that contained nulls.
$ Fixed Custom ores not having a default texture.
% Moved Pump Logging, it was moved to WARNING from INFO.
- Removed most of old Pump tool code.
Diffstat (limited to 'src/Java/gtPlusPlus/api/objects/minecraft/ShapedRecipe.java')
-rw-r--r-- | src/Java/gtPlusPlus/api/objects/minecraft/ShapedRecipe.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/Java/gtPlusPlus/api/objects/minecraft/ShapedRecipe.java b/src/Java/gtPlusPlus/api/objects/minecraft/ShapedRecipe.java index 4be90061a0..1073e63914 100644 --- a/src/Java/gtPlusPlus/api/objects/minecraft/ShapedRecipe.java +++ b/src/Java/gtPlusPlus/api/objects/minecraft/ShapedRecipe.java @@ -71,11 +71,13 @@ public class ShapedRecipe { if (aOutput != null && xNull < 9) { for (ItemStack q : mBlackList) { - if (q.isItemEqual(aOutput)) { - Logger.RECIPE("Found recipe Alkalus is Debugging."); - } + if (q != null) { + if (q.isItemEqual(aOutput)) { + Logger.RECIPE("Found recipe Alkalus is Debugging."); + } + } } - + Object[] mVarags2 = null; Logger.RECIPE("Generating Shaped Crafting Recipe for "+aOutput.getDisplayName()); @@ -188,14 +190,14 @@ public class ShapedRecipe { for (Pair<Character, Object> r : aRecipePairs) { char c = r.getKey(); Object o = r.getValue(); - + if (o instanceof ItemStack || o instanceof Item) { if (o instanceof Item) { o = ItemUtils.getSimpleStack((Item) o); } o = ((ItemStack) o).copy(); } - + mVarags2[counter2] = (char) c; mVarags2[counter2+1] = o; counter2 += 2; |