Merge pull request #2511 from cuberite/BottomLayerSpawn
The bottom layer cannot hold a valid spawn point
This commit is contained in:
commit
9889664ffa
@ -624,6 +624,12 @@ void cWorld::GenerateRandomSpawn(void)
|
||||
|
||||
bool cWorld::CheckPlayerSpawnPoint(int a_PosX, int a_PosY, int a_PosZ)
|
||||
{
|
||||
// The bottom layer cannot hold a valid spawn point
|
||||
if (a_PosY <= 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check that spawnblock and surrounding blocks are neither solid nor water / lava
|
||||
static const struct
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user