Lupicus
Lupicus
This also happens in 1.18.2, probably all versions after 1.17.1, which didn't happen in 1.16.5. It affects other entities that use Entity#interactAt (e.g. mekanism robit). The problem with cancelling is...
I ran that version for a server and client and no mods or packs and after entering spectator with the command, I could not reproduce it either.
I tried same version without any mods and I didn't see it happen (holding a diamond sword or trident or shield), though I'm singleplayer and looking at myself using F5....
I tried a server with same version and two players and still didn't see the issue (i.e. always dark red outline). Are you using a resource pack?