diff options
author | Alexander Harkness <me@bearbin.net> | 2020-03-30 19:23:25 +0200 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2020-03-30 19:23:25 +0200 |
commit | 52d5760be17235a1811e9a26ce849c4a33afad72 (patch) | |
tree | c31178adcb16b7668bd28d83a4e2974072c02379 /src/Mobs | |
parent | Update GETTING-STARTED.md (#4581) (diff) | |
download | cuberite-52d5760be17235a1811e9a26ce849c4a33afad72.tar cuberite-52d5760be17235a1811e9a26ce849c4a33afad72.tar.gz cuberite-52d5760be17235a1811e9a26ce849c4a33afad72.tar.bz2 cuberite-52d5760be17235a1811e9a26ce849c4a33afad72.tar.lz cuberite-52d5760be17235a1811e9a26ce849c4a33afad72.tar.xz cuberite-52d5760be17235a1811e9a26ce849c4a33afad72.tar.zst cuberite-52d5760be17235a1811e9a26ce849c4a33afad72.zip |
Diffstat (limited to 'src/Mobs')
-rw-r--r-- | src/Mobs/Spider.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Spider.cpp b/src/Mobs/Spider.cpp index 329d89e93..319610fa4 100644 --- a/src/Mobs/Spider.cpp +++ b/src/Mobs/Spider.cpp @@ -50,7 +50,7 @@ void cSpider::EventSeePlayer(cPlayer * a_Player, cChunk & a_Chunk) if ( a_Player->CanMobsTarget() && - !((Chunk->GetSkyLightAltered(Rel.x, Rel.y, Rel.z) > 11) || (Chunk->GetBlockLight(Rel.x, Rel.y, Rel.z) > 11)) + !(Chunk->GetLightAltered(Rel) > 11) ) { super::EventSeePlayer(a_Player, a_Chunk); |