Link to an example gif of this issue: https://streamable.com/7j6ofr
I found the bug trying to make a FabricMC minecraft protections mod and it completely breaks the mechanics I had planned for 😛.
p.s. I have tested this in 1.16.5 vanilla minecraft both on a dedicated, LAN and singleplayer world as well.
Whoops, posted the wrong streamable link, updated now