The addAction click was doing an animation without switching when the player had a primary or melee on back but nothing in hands. Probably present in vanilla too, will check later.