diff options
author | YannickMG <yannickmg@gmail.com> | 2021-12-23 14:04:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-23 20:04:04 +0100 |
commit | 96d9a64c3c05d116f62296b3a3e26ecf91a4f781 (patch) | |
tree | 2aef5f5dd8fac5b5e61fbac18f73be8b59210061 /src | |
parent | 31a58597483821113d747ab2630adcdb31d7cef0 (diff) | |
download | GT5-Unofficial-96d9a64c3c05d116f62296b3a3e26ecf91a4f781.tar.gz GT5-Unofficial-96d9a64c3c05d116f62296b3a3e26ecf91a4f781.tar.bz2 GT5-Unofficial-96d9a64c3c05d116f62296b3a3e26ecf91a4f781.zip |
Windmill fixes (#75)
* Fixed windmill not using up the right amount of input items
* Windmill can generate clay since clay dust can be turned back into clay. Removing the extra output makes it use the normal pulverizer recipe.
Former-commit-id: c59630f4289744f4f84c6f827ad11b3f589077d8
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_Windmill.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_Windmill.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_Windmill.java index ffa44e1a88..bb7ac747ad 100644 --- a/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_Windmill.java +++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/tileentities/multis/GT_TileEntity_Windmill.java @@ -107,7 +107,8 @@ public class GT_TileEntity_Windmill extends GT_MetaTileEntity_MultiBlockBase { if (tRecipe == null) return false; if (tRecipe.getOutput(0) != null) { - aStack.stackSize--; + // Decrease input stack by appropriate amount (Not always 1) + tRecipe.isRecipeInputEqual(true, null, aStack); this.mOutputItems[0] = tRecipe.getOutput(0); if (new XSTR().nextInt(2) == 0) { @@ -124,7 +125,6 @@ public class GT_TileEntity_Windmill extends GT_MetaTileEntity_MultiBlockBase { BW_Util.checkStackAndPrefix(this.mOutputItems[0]) && GT_OreDictUnificator.getAssociation(this.mOutputItems[0]).mMaterial.mMaterial == Materials.Sugar || BW_Util.checkStackAndPrefix(this.mOutputItems[0]) && GT_OreDictUnificator.getAssociation(this.mOutputItems[0]).mMaterial.mMaterial == Materials.Wheat || BW_Util.checkStackAndPrefix(this.mOutputItems[0]) && GT_OreDictUnificator.getAssociation(this.mOutputItems[0]).mMaterial.mMaterial == Materials.Wood || - BW_Util.checkStackAndPrefix(this.mOutputItems[0]) && GT_OreDictUnificator.getAssociation(this.mOutputItems[0]).mMaterial.mMaterial == Materials.Clay || BW_Util.checkStackAndPrefix(this.mOutputItems[0]) && GT_OreDictUnificator.getAssociation(this.mOutputItems[0]).mMaterial.mMaterial == Materials.Ash || BW_Util.checkStackAndPrefix(this.mOutputItems[0]) && GT_OreDictUnificator.getAssociation(this.mOutputItems[0]).mMaterial.mMaterial == Materials.Snow || BW_Util.checkStackAndPrefix(this.mOutputItems[0]) && GT_OreDictUnificator.getAssociation(this.mOutputItems[0]).mMaterial.mMaterial == Materials.Stone || |