summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Path.cpp
diff options
context:
space:
mode:
authorLogicParrot <LogicParrot@users.noreply.github.com>2016-01-17 12:36:03 +0100
committerLogicParrot <LogicParrot@users.noreply.github.com>2016-01-17 12:36:03 +0100
commit9c1cb488dbe28932867ad8b9c3c7d98ed6eb626e (patch)
tree0b78829814c92eeb79c314093184e1de46e80736 /src/Mobs/Path.cpp
parentMerge pull request #2885 from SteveWinfield/master (diff)
parentUse IsBlockWater in cPath (diff)
downloadcuberite-9c1cb488dbe28932867ad8b9c3c7d98ed6eb626e.tar
cuberite-9c1cb488dbe28932867ad8b9c3c7d98ed6eb626e.tar.gz
cuberite-9c1cb488dbe28932867ad8b9c3c7d98ed6eb626e.tar.bz2
cuberite-9c1cb488dbe28932867ad8b9c3c7d98ed6eb626e.tar.lz
cuberite-9c1cb488dbe28932867ad8b9c3c7d98ed6eb626e.tar.xz
cuberite-9c1cb488dbe28932867ad8b9c3c7d98ed6eb626e.tar.zst
cuberite-9c1cb488dbe28932867ad8b9c3c7d98ed6eb626e.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Path.cpp b/src/Mobs/Path.cpp
index 03f0ad31a..4db93050e 100644
--- a/src/Mobs/Path.cpp
+++ b/src/Mobs/Path.cpp
@@ -327,7 +327,7 @@ void cPath::BuildPath()
{
// Waypoints are cylinders that start at some particular x, y, z and have infinite height.
// Submerging water waypoints allows swimming mobs to be able to touch them.
- if (GetCell(CurrentCell->m_Location + Vector3i(0, -1, 0))->m_BlockType == E_BLOCK_STATIONARY_WATER)
+ if (IsBlockWater(GetCell(CurrentCell->m_Location + Vector3i(0, -1, 0))->m_BlockType))
{
CurrentCell->m_Location.y -= 30;
}