diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-08 17:05:51 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2013-12-08 17:05:51 +0100 |
commit | d85ea4f654a90b082f5e7b3691773a910cc5b228 (patch) | |
tree | 07f1bdeca98bcb74f26ea6f179d96c4049c0d260 | |
parent | Fixed normalizing large angles. (diff) | |
download | cuberite-d85ea4f654a90b082f5e7b3691773a910cc5b228.tar cuberite-d85ea4f654a90b082f5e7b3691773a910cc5b228.tar.gz cuberite-d85ea4f654a90b082f5e7b3691773a910cc5b228.tar.bz2 cuberite-d85ea4f654a90b082f5e7b3691773a910cc5b228.tar.lz cuberite-d85ea4f654a90b082f5e7b3691773a910cc5b228.tar.xz cuberite-d85ea4f654a90b082f5e7b3691773a910cc5b228.tar.zst cuberite-d85ea4f654a90b082f5e7b3691773a910cc5b228.zip |
Diffstat (limited to '')
-rw-r--r-- | src/World.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |