diff options
author | p-mcgowan <mickeymcgowan@shaw.ca> | 2014-12-02 07:11:28 +0100 |
---|---|---|
committer | p-mcgowan <mickeymcgowan@shaw.ca> | 2014-12-02 07:11:28 +0100 |
commit | ae47c00547f7bfd114f10aa2696f08b38ce3aea2 (patch) | |
tree | 758f0e9cdb63f73fee1e8621e0bec708a2dcae1a /src | |
parent | Merge pull request #1636 from mc-server/MineshaftSpawners (diff) | |
download | cuberite-ae47c00547f7bfd114f10aa2696f08b38ce3aea2.tar cuberite-ae47c00547f7bfd114f10aa2696f08b38ce3aea2.tar.gz cuberite-ae47c00547f7bfd114f10aa2696f08b38ce3aea2.tar.bz2 cuberite-ae47c00547f7bfd114f10aa2696f08b38ce3aea2.tar.lz cuberite-ae47c00547f7bfd114f10aa2696f08b38ce3aea2.tar.xz cuberite-ae47c00547f7bfd114f10aa2696f08b38ce3aea2.tar.zst cuberite-ae47c00547f7bfd114f10aa2696f08b38ce3aea2.zip |
Diffstat (limited to '')
-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..b8f64807e 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) && + (!cBlockInfo::IsTransparent(BlockBelow)) && + ( + a_Biome == biMushroomShore || + a_Biome == biMushroomIsland + ) + ); + } default: { |