diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-12-18 21:48:32 +0100 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-12-21 14:52:23 +0100 |
commit | 47c0b48bfd5df90cf889574c5634542d2aaa8873 (patch) | |
tree | a45252c6fa1add902671ea07eebf2bd49f0bec85 /src/Mobs/Spider.cpp | |
parent | Chunk: use FAST_FLOOR_DIV (diff) | |
download | cuberite-47c0b48bfd5df90cf889574c5634542d2aaa8873.tar cuberite-47c0b48bfd5df90cf889574c5634542d2aaa8873.tar.gz cuberite-47c0b48bfd5df90cf889574c5634542d2aaa8873.tar.bz2 cuberite-47c0b48bfd5df90cf889574c5634542d2aaa8873.tar.lz cuberite-47c0b48bfd5df90cf889574c5634542d2aaa8873.tar.xz cuberite-47c0b48bfd5df90cf889574c5634542d2aaa8873.tar.zst cuberite-47c0b48bfd5df90cf889574c5634542d2aaa8873.zip |
Diffstat (limited to 'src/Mobs/Spider.cpp')
-rw-r--r-- | src/Mobs/Spider.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Mobs/Spider.cpp b/src/Mobs/Spider.cpp index be8196cea..3677411f6 100644 --- a/src/Mobs/Spider.cpp +++ b/src/Mobs/Spider.cpp @@ -48,10 +48,7 @@ void cSpider::EventSeePlayer(cPlayer * a_Player, cChunk & a_Chunk) return; } - if ( - a_Player->CanMobsTarget() && - !((Chunk->GetSkyLightAltered(Rel.x, Rel.y, Rel.z) > 11) || (Chunk->GetBlockLight(Rel.x, Rel.y, Rel.z) > 11)) - ) + if ((Chunk->GetSkyLightAltered(Rel.x, Rel.y, Rel.z) <= 11) && (Chunk->GetBlockLight(Rel.x, Rel.y, Rel.z) <= 11)) { Super::EventSeePlayer(a_Player, a_Chunk); } |