summaryrefslogtreecommitdiffstats
path: root/src/MobSpawner.cpp
diff options
context:
space:
mode:
authorp-mcgowan <mickeymcgowan@shaw.ca>2014-12-04 22:31:58 +0100
committerp-mcgowan <mickeymcgowan@shaw.ca>2014-12-04 22:31:58 +0100
commit8557ab18d0cff48fbd3cefe45cdebc4be1afb71a (patch)
treea460a2b6d674e64764b6a70c820d7a1d9867e7f8 /src/MobSpawner.cpp
parentreformat for lua and CI (diff)
parentMerge pull request #1645 from jonfabe/SpectatorModeFixes (diff)
downloadcuberite-8557ab18d0cff48fbd3cefe45cdebc4be1afb71a.tar
cuberite-8557ab18d0cff48fbd3cefe45cdebc4be1afb71a.tar.gz
cuberite-8557ab18d0cff48fbd3cefe45cdebc4be1afb71a.tar.bz2
cuberite-8557ab18d0cff48fbd3cefe45cdebc4be1afb71a.tar.lz
cuberite-8557ab18d0cff48fbd3cefe45cdebc4be1afb71a.tar.xz
cuberite-8557ab18d0cff48fbd3cefe45cdebc4be1afb71a.tar.zst
cuberite-8557ab18d0cff48fbd3cefe45cdebc4be1afb71a.zip
Diffstat (limited to '')
-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:
{