Restored the following bugs that were fixed in 24w45a:
MC-212 – Fall damage is ignored for a couple of seconds when reloading into LAN or singleplayer worlds.
MC-21650 – Player is immune to damage for a few seconds after saving the world and returning.
MC-160051 – Players can prevent fire damage by reloading world/re-joining server.
Players will have 3 seconds (60ticks) of invincibility after rejoining the game.