summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorSTRWarrior <niels.breuker@hotmail.nl>2013-12-08 17:05:51 +0100
committerSTRWarrior <niels.breuker@hotmail.nl>2013-12-08 17:05:51 +0100
commitd85ea4f654a90b082f5e7b3691773a910cc5b228 (patch)
tree07f1bdeca98bcb74f26ea6f179d96c4049c0d260 /src/World.cpp
parentFixed normalizing large angles. (diff)
downloadcuberite-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.cpp2
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
{