summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2017-06-30 10:48:06 +0200
committerMattes D <github@xoft.cz>2017-06-30 10:48:06 +0200
commit0c0bfe54bbb138436d3c8552736d52dba16e74e1 (patch)
treec3adfcde95bb8612423ce4b5f4225e328fc38b0e
parentAdded 1.12 blocks (#3760) (diff)
downloadcuberite-0c0bfe54bbb138436d3c8552736d52dba16e74e1.tar
cuberite-0c0bfe54bbb138436d3c8552736d52dba16e74e1.tar.gz
cuberite-0c0bfe54bbb138436d3c8552736d52dba16e74e1.tar.bz2
cuberite-0c0bfe54bbb138436d3c8552736d52dba16e74e1.tar.lz
cuberite-0c0bfe54bbb138436d3c8552736d52dba16e74e1.tar.xz
cuberite-0c0bfe54bbb138436d3c8552736d52dba16e74e1.tar.zst
cuberite-0c0bfe54bbb138436d3c8552736d52dba16e74e1.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Spider.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Mobs/Spider.cpp b/src/Mobs/Spider.cpp
index 226b1d0a7..971ff22f6 100644
--- a/src/Mobs/Spider.cpp
+++ b/src/Mobs/Spider.cpp
@@ -48,7 +48,10 @@ void cSpider::EventSeePlayer(cPlayer * a_Player, cChunk & a_Chunk)
return;
}
- if (a_Player->CanMobsTarget() && (Chunk->GetSkyLightAltered(Rel.x, Rel.y, Rel.z) <= 9))
+ if (
+ a_Player->CanMobsTarget() &&
+ !((Chunk->GetSkyLightAltered(Rel.x, Rel.y, Rel.z) > 11) || (Chunk->GetBlockLight(Rel.x, Rel.y, Rel.z) > 11))
+ )
{
super::EventSeePlayer(a_Player, a_Chunk);
}