1
0

Improvements to blaze and ghast (#4547)

This commit is contained in:
Mat
2020-03-26 19:54:40 +02:00
committed by GitHub
parent d18e134e7e
commit 84f86a467e
6 changed files with 155 additions and 32 deletions

View File

@@ -123,7 +123,6 @@ bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, Vector3i a_RelPos, eMonsterType
}
case mtBlaze:
case mtGhast:
{
return (
(targetBlock == E_BLOCK_AIR) &&
@@ -194,6 +193,15 @@ bool cMobSpawner::CanSpawnHere(cChunk * a_Chunk, Vector3i a_RelPos, eMonsterType
break;
}
case mtGhast:
{
return (
(targetBlock == E_BLOCK_AIR) &&
(blockAbove == E_BLOCK_AIR) &&
(random.RandBool())
);
}
case mtGuardian:
{
return (