Bats only spawn where there is no sunlight, and the light level is below 5
This commit is contained in:
parent
d6d73a1754
commit
228ccc5c6a
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user