From 228ccc5c6aa4ac21f280ebd63af39909800e8a7f Mon Sep 17 00:00:00 2001 From: Samuel Barney Date: Tue, 22 Oct 2013 17:11:38 -0600 Subject: Bats only spawn where there is no sunlight, and the light level is below 5 --- source/MobSpawner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source') 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 { -- cgit v1.2.3