diff options
author | tonibm19 <tonibm19@gmail.com> | 2013-08-11 21:54:39 +0200 |
---|---|---|
committer | tonibm19 <tonibm19@gmail.com> | 2013-08-11 21:54:39 +0200 |
commit | 67351d7d7bb3b70b60b5155e426ff4e0393b8dd8 (patch) | |
tree | 8031dfee3040d8cde25ec5639b20e24d9a6ec218 | |
parent | Merge pull request #74 from tigerw/master (diff) | |
download | cuberite-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.cpp | 7 |
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) |