aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorNexusNull <p.wellershaus@googlemail.com>2023-01-04 00:37:22 +0100
committerGitHub <noreply@github.com>2023-01-04 00:37:22 +0100
commit8def5ffd1a2ff06b857a732e852818f68a070b1b (patch)
treef424191e0640ff4d3492c325c1ae2d5c834729d2 /src/main
parent1b47f60b684a64639d67a09036590195c3abe11c (diff)
downloadGT5-Unofficial-8def5ffd1a2ff06b857a732e852818f68a070b1b.tar.gz
GT5-Unofficial-8def5ffd1a2ff06b857a732e852818f68a070b1b.tar.bz2
GT5-Unofficial-8def5ffd1a2ff06b857a732e852818f68a070b1b.zip
make crop harvestor search below aswell (#474)
Signed-off-by: NexusNull <p.wellershaus@googlemail.com> Signed-off-by: NexusNull <p.wellershaus@googlemail.com>
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/basic/GT_MetaTileEntity_CropHarvestor.java4
1 files changed, 2 insertions, 2 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 40425646c3..c65c7be917 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
@@ -204,7 +204,7 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
this.mCropCache.clear();
}
// Logger.INFO("Looking for crops.");
- for (int y = 0; y <= 2; y++) {
+ for (int y = -2; y <= 2; y++) {
for (int x = (-aSide); x <= aSide; x++) {
for (int z = (-aSide); z <= aSide; z++) {
TileEntity tTileEntity = getBaseMetaTileEntity().getTileEntityOffset(x, y, z);
@@ -505,7 +505,7 @@ public class GT_MetaTileEntity_CropHarvestor extends GT_MetaTileEntity_BasicTank
"Secondary mode can Hydrate/Fertilize/Weed-EX",
"Consumes " + powerUsage() + "eu per harvest",
"Consumes " + powerUsageSecondary() + "eu per secondary operation",
- "Can harvest 2 blocks above",
+ "Can harvest 2 blocks above and below",
"Radius: " + aSide + " each side (" + aRadius + "x3x" + aRadius + ")",
"Has " + (this.mTier * 5) + "% chance for extra drops",
"Holds " + this.getCapacity() + "L of Water",