diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2017-08-24 23:18:46 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2017-08-24 23:18:46 +1000 |
commit | 07a495ab6ab1d9932cdf769e8b145f4628028f4d (patch) | |
tree | 66067fc5a57d6b966a01763dbd26f3c958b012de /src/Java/gtPlusPlus/xmod/gregtech/common/tileentities | |
parent | 9a05bf4c86396c58b4545aca9e9d8ff4994ab2d0 (diff) | |
download | GT5-Unofficial-07a495ab6ab1d9932cdf769e8b145f4628028f4d.tar.gz GT5-Unofficial-07a495ab6ab1d9932cdf769e8b145f4628028f4d.tar.bz2 GT5-Unofficial-07a495ab6ab1d9932cdf769e8b145f4628028f4d.zip |
+ Made the large Autocrafter handle Assembly and Disassembly properly.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/tileentities')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_AutoCrafter.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_AutoCrafter.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_AutoCrafter.java index 6ca2b0fb4c..a34304a0af 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_AutoCrafter.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GT4Entity_AutoCrafter.java @@ -199,6 +199,9 @@ extends GT_MetaTileEntity_MultiBlockBase final long tVoltage = this.getMaxInputVoltage(); final byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage)); final GT_Recipe tRecipe = this.getRecipeMap().findRecipe(this.getBaseMetaTileEntity(), false, GT_Values.V[this.mTier], tFluids, tInputs); + if (tRecipe == null){ + Utils.LOG_INFO("Recipe is Null."); + } if (tRecipe != null && tRecipe.isRecipeInputEqual(true, tFluids, tInputs)) { Utils.LOG_INFO("test2"); this.mEfficiency = 10000 - (this.getIdealStatus() - this.getRepairStatus()) * 1000; @@ -257,15 +260,20 @@ extends GT_MetaTileEntity_MultiBlockBase final ItemStack[] tInputs = tInputList.toArray(new ItemStack[tInputList.size()]); ItemStack inputItem = tInputs[0]; - + int outputSlots = this.mOutputBusses.get(0).getSizeInventory(); + this.mOutputItems = new ItemStack[outputSlots]; if (inputItem != null) { + Utils.LOG_INFO("test 1"); NBTTagCompound tNBT = inputItem.getTagCompound(); if (tNBT != null) { + Utils.LOG_INFO("test 2"); tNBT = tNBT.getCompoundTag("GT.CraftingComponents"); if (tNBT != null) { + Utils.LOG_INFO("test 3"); this.mEUt = 16 * (1 << this.mTier - 1) * (1 << this.mTier - 1); this.mMaxProgresstime = 80; for (int i = 0; i < this.mOutputItems.length; ++i) { + Utils.LOG_INFO("test 4 | "+i); if (this.getBaseMetaTileEntity().getRandomNumber(100) < 50 + 10 * this.mTier) { this.mOutputItems[i] = GT_Utility.loadItem(tNBT, "Ingredient." + i); if (this.mOutputItems[i] != null) { @@ -285,6 +293,7 @@ extends GT_MetaTileEntity_MultiBlockBase } } } + Utils.LOG_INFO("test - bad"); return false; } } |