diff options
author | p-mcgowan <mickeymcgowan@shaw.ca> | 2014-12-04 22:31:58 +0100 |
---|---|---|
committer | p-mcgowan <mickeymcgowan@shaw.ca> | 2014-12-04 22:31:58 +0100 |
commit | 8557ab18d0cff48fbd3cefe45cdebc4be1afb71a (patch) | |
tree | a460a2b6d674e64764b6a70c820d7a1d9867e7f8 /src/MobSpawner.cpp | |
parent | reformat for lua and CI (diff) | |
parent | Merge pull request #1645 from jonfabe/SpectatorModeFixes (diff) | |
download | cuberite-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 'src/MobSpawner.cpp')
-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: { |