summaryrefslogtreecommitdiffstats
path: root/src/MobSpawner.cpp
diff options
context:
space:
mode:
authorp-mcgowan <mickeymcgowan@shaw.ca>2014-12-02 07:11:28 +0100
committerp-mcgowan <mickeymcgowan@shaw.ca>2014-12-02 07:11:28 +0100
commitae47c00547f7bfd114f10aa2696f08b38ce3aea2 (patch)
tree758f0e9cdb63f73fee1e8621e0bec708a2dcae1a /src/MobSpawner.cpp
parentMerge pull request #1636 from mc-server/MineshaftSpawners (diff)
downloadcuberite-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 'src/MobSpawner.cpp')
-rw-r--r--src/MobSpawner.cpp13
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:
{