When a player right clicks ONCE in spectator mode, PlayerInteractEntityEvent fires twice.
For example,
@EventHandler
public void onEntityRightClick(PlayerInteractEntityEvent event) {
if (event.getRightClicked() instanceof Cat cat)
}
returns in the chat in game
Click!
Click!
when a cat is right clicked ONCE when the player is in spectator mode.
This does not occur for other gamemodes, whereas it fires properly (i.e. one "Click!").