GlowstoneMC/Glowstone — pull request #371 by GermanCoding (2014-09-29 15:20:00+00:00)
Title: Spawn the player next to the bed instead of inside it

This is my first pull request, so please say me if I did something wrong.

I made a little change in the respawn() function. The old code respawned the player in his bed. The new code should find a place next to the bed where the player could stand (2 air blocks). If there is no good place the player will respawn at the world's spawn.