Adding mobtype filter inside world.ini
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "Mobs/Monster.h"
|
||||
#include "Mobs/IncludeAllMonsters.h"
|
||||
|
||||
#include <sstream>
|
||||
|
||||
cMobSpawner::tMobTypes& cMobSpawner::m_MobTypes()
|
||||
{
|
||||
@@ -178,7 +179,7 @@ bool cMobSpawner::CanSpawnHere(cMonster::eType a_MobType, BLOCKTYPE a_BlockType,
|
||||
{
|
||||
if (a_MobType == cMonster::mtChicken || a_MobType == cMonster::mtPig || a_MobType == cMonster::mtCow || a_MobType == cMonster::mtSheep)
|
||||
{
|
||||
LOGD("Trying to spawn an animal");
|
||||
LOGD(oss.str().c_str());
|
||||
toReturn = (
|
||||
a_BlockType_below == E_BLOCK_GRASS /*&& // MG TODO
|
||||
a_LightLevel >= 9 */
|
||||
|
||||
Reference in New Issue
Block a user