diff options
author | Mattes D <github@xoft.cz> | 2014-12-03 09:34:26 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-12-03 09:34:26 +0100 |
commit | 4d74adaa671733693c70f3f92ad2046de4466a51 (patch) | |
tree | aa1fff17de6f8ae5068922c12afd4fe63ec78c84 | |
parent | Merge pull request #1634 from mc-server/DungeonSpawners (diff) | |
parent | updated mooshroom check for mycelium (diff) | |
download | cuberite-4d74adaa671733693c70f3f92ad2046de4466a51.tar cuberite-4d74adaa671733693c70f3f92ad2046de4466a51.tar.gz cuberite-4d74adaa671733693c70f3f92ad2046de4466a51.tar.bz2 cuberite-4d74adaa671733693c70f3f92ad2046de4466a51.tar.lz cuberite-4d74adaa671733693c70f3f92ad2046de4466a51.tar.xz cuberite-4d74adaa671733693c70f3f92ad2046de4466a51.tar.zst cuberite-4d74adaa671733693c70f3f92ad2046de4466a51.zip |
-rw-r--r-- | src/MobSpawner.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/MobSpawner.cpp b/src/MobSpawner.cpp index a1d375e9e..e477e2dac 100644 --- a/src/MobSpawner.cpp +++ b/src/MobSpawner.cpp @@ -285,6 +285,19 @@ bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_R ) ); } + + case mtMooshroom: + { + return ( + (TargetBlock == E_BLOCK_AIR) && + (BlockAbove == E_BLOCK_AIR) && + (BlockBelow == E_BLOCK_MYCELIUM) && + ( + (a_Biome == biMushroomShore) || + (a_Biome == biMushroomIsland) + ) + ); + } default: { |