Hi, I have a weird issue, I dont know why but when I hold left click with a Gun Item(to aim) in the main hand, looking at grass, flowers, or torches, the player gets stuck and cant move until I stop holding left click or stop looking at the grass, flower, torch, etc,....
How could I fix this? I think i've checked all the methods from the Gun class and all the events that relate to this issue, but none is making this happen.
PD: in creative mode it has a different, it just causes the player movement to lag, and its triggered by holding left click with any block.
Here's the repo:
Gun class
Footage: