summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortonibm19 <tonibm19@gmail.com>2013-08-11 21:54:39 +0200
committertonibm19 <tonibm19@gmail.com>2013-08-11 21:54:39 +0200
commit67351d7d7bb3b70b60b5155e426ff4e0393b8dd8 (patch)
tree8031dfee3040d8cde25ec5639b20e24d9a6ec218
parentMerge pull request #74 from tigerw/master (diff)
downloadcuberite-67351d7d7bb3b70b60b5155e426ff4e0393b8dd8.tar
cuberite-67351d7d7bb3b70b60b5155e426ff4e0393b8dd8.tar.gz
cuberite-67351d7d7bb3b70b60b5155e426ff4e0393b8dd8.tar.bz2
cuberite-67351d7d7bb3b70b60b5155e426ff4e0393b8dd8.tar.lz
cuberite-67351d7d7bb3b70b60b5155e426ff4e0393b8dd8.tar.xz
cuberite-67351d7d7bb3b70b60b5155e426ff4e0393b8dd8.tar.zst
cuberite-67351d7d7bb3b70b60b5155e426ff4e0393b8dd8.zip
-rw-r--r--source/World.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 776bacff8..3955b6136 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -694,6 +694,13 @@ void cWorld::TickSpawnMobs(float a_Dt)
case 6: MobType = E_ENTITY_TYPE_ZOMBIE_PIGMAN; break;
}
}
+ else if (GetBiomeAt((int)SpawnPos.x, (int)SpawnPos.z) == biSky)
+ {
+ switch (nightRand)
+ {
+ case 5: MobType = E_ENTITY_TYPE_ENDERMAN; break;
+ }
+ }
else
{
switch (nightRand)