aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDennis <47501679+Denostrov@users.noreply.github.com>2023-04-26 20:12:05 +0300
committerGitHub <noreply@github.com>2023-04-26 19:12:05 +0200
commit66245b81d567e3ed7275f42845a5ff7cecbed225 (patch)
tree958b946b48104ef7836e569e4b1725e9952bcb07 /src
parenta5988a07ab100499db088a79a07793a82b050050 (diff)
downloadGT5-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.java2
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;