summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-08-12 07:46:41 +0200
committermadmaxoft <github@xoft.cz>2013-08-12 07:46:41 +0200
commit79ece8eb0db07d88e1f44239842b7ef44a33a2d4 (patch)
tree5e1d2b29b9f101557db1edf8650dc84fb73d5047 /source/World.cpp
parentAdded cWorld:QueueSaveAllChunks() function for saving chunks asynchronously. (diff)
parentMerge pull request #77 from tonibm19/patch-1 (diff)
downloadcuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.tar
cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.tar.gz
cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.tar.bz2
cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.tar.lz
cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.tar.xz
cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.tar.zst
cuberite-79ece8eb0db07d88e1f44239842b7ef44a33a2d4.zip
Diffstat (limited to 'source/World.cpp')
-rw-r--r--source/World.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 9212202e9..341682a2a 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -744,6 +744,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)