Raycasting issues (Detect block placed location)

To put it simply, I am trying to detect exactly where players place vines. I set up an advancement that detects when and where a player places a vine, but the issue comes when the player places a vine past another vine. It detects the vine closer, and assumes that is what they just placed. Is there any way around this, or do I just need to live with it?

Continue to help post