From d85ea4f654a90b082f5e7b3691773a910cc5b228 Mon Sep 17 00:00:00 2001 From: STRWarrior Date: Sun, 8 Dec 2013 17:05:51 +0100 Subject: Now spawn points will not be in deep oceans or rivers etc. --- src/World.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/World.cpp b/src/World.cpp index b02fea6f1..1faa0b018 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -608,7 +608,7 @@ void cWorld::GenerateRandomSpawn(void) { LOGD("Generating random spawnpoint..."); - while (GetBiomeAt((int)m_SpawnX, (int)m_SpawnZ) == biOcean) // Anything but ocean is fine + while (IsBlockWater(GetBlock((int)m_SpawnX, GetHeight((int)m_SpawnX, (int)m_SpawnZ), (int)m_SpawnZ))) { if ((GetTickRandomNumber(4) % 2) == 0) // Randomise whether to increment X or Z coords { -- cgit v1.2.3