fixed logic error in harvestPlant