summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Monster.cpp
diff options
context:
space:
mode:
authorAlexander Harkness <me@bearbin.net>2018-01-14 19:44:45 +0100
committerpeterbell10 <peterbell10@live.co.uk>2018-01-14 19:44:45 +0100
commitad22922393c7982b885840960222de64ff96ad36 (patch)
treea028b7459f3c865f7e8bd563ae476c578763a9b1 /src/Mobs/Monster.cpp
parentTravis: Remove gdb (#4140) (diff)
downloadcuberite-ad22922393c7982b885840960222de64ff96ad36.tar
cuberite-ad22922393c7982b885840960222de64ff96ad36.tar.gz
cuberite-ad22922393c7982b885840960222de64ff96ad36.tar.bz2
cuberite-ad22922393c7982b885840960222de64ff96ad36.tar.lz
cuberite-ad22922393c7982b885840960222de64ff96ad36.tar.xz
cuberite-ad22922393c7982b885840960222de64ff96ad36.tar.zst
cuberite-ad22922393c7982b885840960222de64ff96ad36.zip
Diffstat (limited to 'src/Mobs/Monster.cpp')
-rw-r--r--src/Mobs/Monster.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp
index db1150f67..03b809275 100644
--- a/src/Mobs/Monster.cpp
+++ b/src/Mobs/Monster.cpp
@@ -194,7 +194,7 @@ void cMonster::MoveToWayPoint(cChunk & a_Chunk)
{
if (
(IsOnGround() && (GetSpeed().SqrLength() <= 0.5)) || // If walking on the ground, we need to slow down first, otherwise we miss the jump
- IsSwimming()
+ IsInWater()
)
{
m_bOnGround = false;
@@ -221,7 +221,7 @@ void cMonster::MoveToWayPoint(cChunk & a_Chunk)
{
Distance *= 2.5f;
}
- else if (IsSwimming())
+ else if (IsInWater())
{
Distance *= 1.3f;
}