summaryrefslogtreecommitdiffstats
path: root/src/Mobs/AggressiveMonster.cpp
diff options
context:
space:
mode:
authorRorkh <rorkh@internet.ru>2021-09-18 11:10:31 +0200
committerTiger Wang <ziwei.tiger@outlook.com>2021-10-02 22:18:18 +0200
commit4c5d9d38f45ae7c18a3e9799152305757a8a1d2a (patch)
tree6c369d0901427be8ab92bef9cd229e60a21486a0 /src/Mobs/AggressiveMonster.cpp
parentSnipe skeleton achievment (diff)
downloadcuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar
cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.gz
cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.bz2
cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.lz
cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.xz
cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.tar.zst
cuberite-4c5d9d38f45ae7c18a3e9799152305757a8a1d2a.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/AggressiveMonster.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/AggressiveMonster.cpp b/src/Mobs/AggressiveMonster.cpp
index bcc824bba..f7392d92e 100644
--- a/src/Mobs/AggressiveMonster.cpp
+++ b/src/Mobs/AggressiveMonster.cpp
@@ -72,7 +72,7 @@ void cAggressiveMonster::Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk)
*GetWorld(),
GetPosition().addedY(GetHeight()),
GetTarget()->GetPosition().addedY(GetTarget()->GetHeight()),
- cLineBlockTracer::losAirWaterLava // TODO: Currently all mobs see through lava, but only Nether-native mobs should be able to.
+ (IsNetherNative() ? cLineBlockTracer::losAirWaterLava : cLineBlockTracer::losAirWater)
) &&
(GetHealth() > 0.0)
)