Why might be my teacher avoiding me in a small-ish way, though we have a good relationship with one another?

Viktoriya_1
(by relationship I don't mean romantic, more like a student-teacher friendship)
So for a couple weeks before summer he didn't really look forward to see me during a certain time , though I am a respectful and kind student, he sees that I try hard in his class. And we have a pretty good bond. Like sometimes we first bump or hug each other and go on with our day. But the last few weeks he had been acting strange. Like we have a cafeteria in the middle of the school and have 2 ways to can walk past it. The longer route which he has always used and the shorter one, which he hasn't used till those last weeks. And we have our own thing where I'd run up to him and hug him and he never seemed to be bothered by it. I don't wanna make it sound like I am overly obsessed with him which is not the case. I just wanna know if I am doing something wrong that makes him uncomfortable? Because even though it's summer break I wanna continue being school friends with that teacher.
Why might be my teacher avoiding me in a small-ish way, though we have a good relationship with one another?
7 Opinion