diff options
author | Dennis <47501679+Denostrov@users.noreply.github.com> | 2023-04-26 20:12:05 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 19:12:05 +0200 |
commit | 66245b81d567e3ed7275f42845a5ff7cecbed225 (patch) | |
tree | 958b946b48104ef7836e569e4b1725e9952bcb07 /src | |
parent | a5988a07ab100499db088a79a07793a82b050050 (diff) | |
download | GT5-Unofficial-66245b81d567e3ed7275f42845a5ff7cecbed225.tar.gz GT5-Unofficial-66245b81d567e3ed7275f42845a5ff7cecbed225.tar.bz2 GT5-Unofficial-66245b81d567e3ed7275f42845a5ff7cecbed225.zip |
fix crop harvester energy drain and not harvesting non-last optimal level crops (#609)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java index ed6e05047c..1b12b6cb41 100644 --- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java +++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java @@ -240,7 +240,7 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank if (this.mModeAlternative) processSecondaryFunctions(tCrop); - if (!aCrop.canGrow(tCrop) && aCrop.canBeHarvested(tCrop)) { + if (aCrop.canBeHarvested(tCrop) && tCrop.getSize() == aCrop.getOptimalHavestSize(tCrop)) { if (!getBaseMetaTileEntity().decreaseStoredEnergyUnits(powerUsage(), true)) continue; ItemStack[] aHarvest = tCrop.harvest_automated(true); if (aHarvest == null) continue; |