Fixed flying problem where player would take damage while flying is on.