diff options
author | John <Techlone@users.noreply.github.com> | 2016-04-02 16:07:59 +0500 |
---|---|---|
committer | John <Techlone@users.noreply.github.com> | 2016-04-02 16:07:59 +0500 |
commit | 0aad2f76890c0490b3a277609fa48cce0a97ce1f (patch) | |
tree | 4c3d81b018e860597811036b57289e31954995db /src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java | |
parent | 792cca0af612ff35bd36e5408e538a386f5d02db (diff) | |
parent | b71fa8f0429cf58b7e16aa94c9361d33e85dbe5f (diff) | |
download | GT5-Unofficial-0aad2f76890c0490b3a277609fa48cce0a97ce1f.tar.gz GT5-Unofficial-0aad2f76890c0490b3a277609fa48cce0a97ce1f.tar.bz2 GT5-Unofficial-0aad2f76890c0490b3a277609fa48cce0a97ce1f.zip |
Merge pull request #1 from Blood-Asp/experimental
Update from orig
Diffstat (limited to 'src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java')
-rw-r--r-- | src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java index 77a595cc40..0ab6d19e59 100644 --- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java +++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingPlank.java @@ -34,7 +34,7 @@ public class ProcessingPlank implements gregtech.api.interfaces.IOreRecipeRegist GT_Values.RA.addAssemblerRecipe(GT_Utility.copyAmount(6L, new Object[]{aStack}), new ItemStack(Items.book, 3), new ItemStack(Blocks.bookshelf, 1), 400, 4); if (aStack.getItemDamage() == 32767) { - for (byte i = 0; i < 16; i = (byte) (i + 1)) { + for (byte i = 0; i < 64; i = (byte) (i + 1)) { ItemStack tStack = GT_Utility.copyMetaData(i, new Object[]{aStack}); ItemStack tOutput = GT_ModHandler.getRecipeOutput(new ItemStack[]{tStack, tStack, tStack}); if ((tOutput != null) && (tOutput.stackSize >= 3)) { @@ -42,6 +42,11 @@ public class ProcessingPlank implements gregtech.api.interfaces.IOreRecipeRegist GT_ModHandler.removeRecipe(new ItemStack[]{tStack, tStack, tStack}); GT_ModHandler.addCraftingRecipe(GT_Utility.copyAmount(tOutput.stackSize / 3, new Object[]{tOutput}), new Object[]{"sP", Character.valueOf('P'), tStack}); } + if(tStack==null){ + if(i>=16){ + break; + } + } } } else { ItemStack tOutput = GT_ModHandler.getRecipeOutput(new ItemStack[]{aStack, aStack, aStack}); |