diff options
author | Dream-Master <dream-master@gmx.net> | 2018-10-26 23:01:19 +0200 |
---|---|---|
committer | Dream-Master <dream-master@gmx.net> | 2018-10-26 23:01:19 +0200 |
commit | e746c150ac0f986fd33f3fd60d7e8e2c4c29f950 (patch) | |
tree | f54382afba5564d95879d8c4beb47846eed31bea /src/main/java/gregtech/common/tileentities | |
parent | 3785e45c123b0a68a122d04bc2227b902e09d7ab (diff) | |
download | GT5-Unofficial-e746c150ac0f986fd33f3fd60d7e8e2c4c29f950.tar.gz GT5-Unofficial-e746c150ac0f986fd33f3fd60d7e8e2c4c29f950.tar.bz2 GT5-Unofficial-e746c150ac0f986fd33f3fd60d7e8e2c4c29f950.zip |
remove dissabeling eggs
Diffstat (limited to 'src/main/java/gregtech/common/tileentities')
-rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java index 1935cb348a..8efebe98a5 100644 --- a/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java +++ b/src/main/java/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_Disassembler.java @@ -32,17 +32,17 @@ public class GT_MetaTileEntity_Disassembler }
public int checkRecipe() {
- if ((getInputAt(0) != null) && (isOutputEmpty())) {
- if(GT_Utility.areStacksEqual(getInputAt(0), new ItemStack(Items.egg))){
- getInputAt(0).stackSize -= 1;
- this.mEUt = (16 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
- this.mMaxProgresstime = 2400;
- this.mMaxProgresstime = this.mMaxProgresstime >> (mTier);
- if (getBaseMetaTileEntity().getRandomNumber(100) < (this.mTier+1)) {
- this.mOutputItems[0] = ItemList.Circuit_Chip_Stemcell.get(1, new Object[0]);
- }
- return 2;
- }
+ //if ((getInputAt(0) != null) && (isOutputEmpty())) {
+ // if(GT_Utility.areStacksEqual(getInputAt(0), new ItemStack(Items.egg))){
+ // getInputAt(0).stackSize -= 1;
+ // this.mEUt = (16 * (1 << this.mTier - 1) * (1 << this.mTier - 1));
+ // this.mMaxProgresstime = 2400;
+ // this.mMaxProgresstime = this.mMaxProgresstime >> (mTier);
+ //if (getBaseMetaTileEntity().getRandomNumber(100) < (this.mTier+1)) {
+ // this.mOutputItems[0] = ItemList.Circuit_Chip_Stemcell.get(1, new Object[0]);
+ //}
+ //return 2;
+ //}
NBTTagCompound tNBT = getInputAt(0).getTagCompound();
if (tNBT != null) {
tNBT = tNBT.getCompoundTag("GT.CraftingComponents");
@@ -77,7 +77,7 @@ public class GT_MetaTileEntity_Disassembler return FOUND_AND_SUCCESSFULLY_USED_RECIPE;
}
}
- }
+
return DID_NOT_FIND_RECIPE;
}
@@ -103,6 +103,7 @@ public class GT_MetaTileEntity_Disassembler }
public boolean allowPutStack(IGregTechTileEntity aBaseMetaTileEntity, int aIndex, byte aSide, ItemStack aStack) {
- return (aIndex == 4 && GT_Utility.areStacksEqual(aStack, new ItemStack(Items.egg))) || (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (aStack.getTagCompound() != null) && (aStack.getTagCompound().getCompoundTag("GT.CraftingComponents") != null);
+ return //(aIndex == 4 && GT_Utility.areStacksEqual(aStack, new ItemStack(Items.egg))) ||
+ (super.allowPutStack(aBaseMetaTileEntity, aIndex, aSide, aStack)) && (aStack.getTagCompound() != null) && (aStack.getTagCompound().getCompoundTag("GT.CraftingComponents") != null);
}
}
|