small fix
This commit is contained in:
parent
6a09cb1825
commit
99595bd912
1 changed files with 6 additions and 1 deletions
|
@ -34,13 +34,18 @@ 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);
|
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) {
|
if (aStack.getItemDamage() == 32767) {
|
||||||
for (byte i = 0; i < 32; i = (byte) (i + 1)) {
|
for (byte i = 0; i < 64; i = (byte) (i + 1)) {
|
||||||
ItemStack tStack = GT_Utility.copyMetaData(i, new Object[]{aStack});
|
ItemStack tStack = GT_Utility.copyMetaData(i, new Object[]{aStack});
|
||||||
ItemStack tOutput = GT_ModHandler.getRecipeOutput(new ItemStack[]{tStack, tStack, tStack});
|
ItemStack tOutput = GT_ModHandler.getRecipeOutput(new ItemStack[]{tStack, tStack, tStack});
|
||||||
if ((tOutput != null) && (tOutput.stackSize >= 3)) {
|
if ((tOutput != null) && (tOutput.stackSize >= 3)) {
|
||||||
GT_Values.RA.addCutterRecipe(GT_Utility.copyAmount(1L, new Object[]{tStack}), GT_Utility.copyAmount(tOutput.stackSize / 3, new Object[]{tOutput}), null, 25, 4);
|
GT_Values.RA.addCutterRecipe(GT_Utility.copyAmount(1L, new Object[]{tStack}), GT_Utility.copyAmount(tOutput.stackSize / 3, new Object[]{tOutput}), null, 25, 4);
|
||||||
GT_ModHandler.removeRecipe(new ItemStack[]{tStack, tStack, tStack});
|
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});
|
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 {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue