mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-28 15:56:07 +00:00
#1489 Farming Station attempting to harvest blocks above berry bushes
This commit is contained in:
1 parent
c3dea65475
commit
5dd479f5e6
1 file changed
+4
-12
@@ -40,8 +40,6 @@ public class NaturaBerryFarmer extends PickableFarmer {
|
||||
for(EntityItem stack : addToDrops) {
|
||||
res.getDrops().add(stack);
|
||||
}
|
||||
farm.actionPerformed(false);
|
||||
farm.damageHoe(1, checkBlock);
|
||||
}
|
||||
checkBlock = checkBlock.getLocation(ForgeDirection.UP);
|
||||
}
|
||||
@@ -60,15 +58,9 @@ public class NaturaBerryFarmer extends PickableFarmer {
|
||||
}
|
||||
|
||||
BlockCoord checkBlock = bc;
|
||||
|
||||
for(int i=0; i < 5; i++) {
|
||||
meta = farm.getBlockMeta(checkBlock);
|
||||
if(super.canHarvest(farm, checkBlock, block, meta)) {
|
||||
return true;
|
||||
}
|
||||
checkBlock = checkBlock.getLocation(ForgeDirection.UP);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
meta = farm.getBlockMeta(checkBlock);
|
||||
block = checkBlock.getBlock(farm.getWorldObj());
|
||||
return super.canHarvest(farm, checkBlock, block, meta);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user