aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorLyfts <127234178+Lyfts@users.noreply.github.com>2024-02-14 01:12:37 +0100
committerGitHub <noreply@github.com>2024-02-14 01:12:37 +0100
commit3375d3924fd60fc66d8b07f1d3480afe51e5f6ca (patch)
treeab97886677b2beeafa1a192aea07fd16c3e16f04 /src/main/java
parentc62295162d0196969b5fce97fc82809eed7be710 (diff)
downloadGT5-Unofficial-3375d3924fd60fc66d8b07f1d3480afe51e5f6ca.tar.gz
GT5-Unofficial-3375d3924fd60fc66d8b07f1d3480afe51e5f6ca.tar.bz2
GT5-Unofficial-3375d3924fd60fc66d8b07f1d3480afe51e5f6ca.zip
Fix crop harvester stopping after 1 crop if harvesting is off (#833)
fix crop harvester stopping after 1 crop if harvesting is off
Diffstat (limited to 'src/main/java')
-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 972fc086f9..af430c4a27 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
@@ -232,7 +232,7 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
if (aCrop == null) continue;
if (this.mModeAlternative) processSecondaryFunctions(tCrop);
- if (!this.mHarvestEnabled) break;
+ if (!this.mHarvestEnabled) continue;
if (aCrop.canBeHarvested(tCrop) && tCrop.getSize() == aCrop.getOptimalHavestSize(tCrop)) {
if (!getBaseMetaTileEntity().decreaseStoredEnergyUnits(powerUsage(), true)) continue;