Minecraft wiki entry for Multiplayer_details, associated text: Sleeping in a bed will reset your spawn point to that bed, even if you click "Leave Bed". If the bed at which you have set your spawn point last is missing or blocked when you respawn, your spawn point reverts to the world spawn.[1]