summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-12-03 09:34:26 +0100
committerMattes D <github@xoft.cz>2014-12-03 09:34:26 +0100
commit4d74adaa671733693c70f3f92ad2046de4466a51 (patch)
treeaa1fff17de6f8ae5068922c12afd4fe63ec78c84 /src
parentMerge pull request #1634 from mc-server/DungeonSpawners (diff)
parentupdated mooshroom check for mycelium (diff)
downloadcuberite-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
Diffstat (limited to 'src')
-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..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:
{