When you are felling from a high place and you open the anvil, you don't take any fall damage (I teleported myself 100 block to the air, then when I was about to die I opened an anvil below and I didn't take fall damage) - No lag, I took fall damage then (I was in GM 1)
If you're in gamemode 1, you can't take fall damage.