summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2013-10-23 01:11:38 +0200
committerSamuel Barney <samjbarney@gmail.com>2013-10-23 01:11:38 +0200
commit228ccc5c6aa4ac21f280ebd63af39909800e8a7f (patch)
tree57afa89ec838f5030fa07569a00a316682a094d8
parentInvalid light value is now 127 (diff)
downloadcuberite-228ccc5c6aa4ac21f280ebd63af39909800e8a7f.tar
cuberite-228ccc5c6aa4ac21f280ebd63af39909800e8a7f.tar.gz
cuberite-228ccc5c6aa4ac21f280ebd63af39909800e8a7f.tar.bz2
cuberite-228ccc5c6aa4ac21f280ebd63af39909800e8a7f.tar.lz
cuberite-228ccc5c6aa4ac21f280ebd63af39909800e8a7f.tar.xz
cuberite-228ccc5c6aa4ac21f280ebd63af39909800e8a7f.tar.zst
cuberite-228ccc5c6aa4ac21f280ebd63af39909800e8a7f.zip
-rw-r--r--source/MobSpawner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/MobSpawner.cpp b/source/MobSpawner.cpp
index 8f21e18f5..a69c56538 100644
--- a/source/MobSpawner.cpp
+++ b/source/MobSpawner.cpp
@@ -141,7 +141,7 @@ bool cMobSpawner::CanSpawnHere(cMonster::eType a_MobType, BLOCKTYPE a_BlockType,
}
else if (a_MobType == cMonster::mtBat)
{
- toReturn = a_Level <= 60; // MG TODO : find a real rule
+ toReturn = a_Level <= 63 && (a_Skylight == 0) && (a_Blocklight <= 4); // MG TODO : find a real rule
}
else
{