diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-09 01:57:22 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2014-02-09 01:57:22 +0100 |
commit | c68bdaf34beee368100e6697fc3d87a711dba6b7 (patch) | |
tree | c7891201022913cff7e955057c1cdf900fedc963 /src/MobSpawner.cpp | |
parent | Merge remote-tracking branch 'origin/master' into playerimprovements (diff) | |
download | cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.tar cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.tar.gz cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.tar.bz2 cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.tar.lz cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.tar.xz cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.tar.zst cuberite-c68bdaf34beee368100e6697fc3d87a711dba6b7.zip |
Diffstat (limited to 'src/MobSpawner.cpp')
-rw-r--r-- | src/MobSpawner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MobSpawner.cpp b/src/MobSpawner.cpp index 4d0b2777b..c86268e63 100644 --- a/src/MobSpawner.cpp +++ b/src/MobSpawner.cpp @@ -126,7 +126,7 @@ cMonster::eType cMobSpawner::ChooseMobType(EMCSBiome a_Biome) bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, int a_RelX, int a_RelY, int a_RelZ, cMonster::eType a_MobType, EMCSBiome a_Biome) { - BLOCKTYPE TargetBlock; + BLOCKTYPE TargetBlock = E_BLOCK_AIR; if (m_AllowedTypes.find(a_MobType) != m_AllowedTypes.end() && a_Chunk->UnboundedRelGetBlockType(a_RelX, a_RelY, a_RelZ, TargetBlock)) { NIBBLETYPE BlockLight = a_Chunk->GetBlockLight(a_RelX, a_RelY, a_RelZ); |