diff options
author | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-01-17 11:50:26 +0100 |
---|---|---|
committer | LogicParrot <LogicParrot@users.noreply.github.com> | 2016-01-17 11:52:00 +0100 |
commit | 18a8caaf6d51c71b89642487807fbcbf778dc8ce (patch) | |
tree | a24e1f43cc5617b6e0f5cb88cd512f3fbf1aa9af /src | |
parent | Merge pull request #2881 from LogicParrot/knockback (diff) | |
download | cuberite-18a8caaf6d51c71b89642487807fbcbf778dc8ce.tar cuberite-18a8caaf6d51c71b89642487807fbcbf778dc8ce.tar.gz cuberite-18a8caaf6d51c71b89642487807fbcbf778dc8ce.tar.bz2 cuberite-18a8caaf6d51c71b89642487807fbcbf778dc8ce.tar.lz cuberite-18a8caaf6d51c71b89642487807fbcbf778dc8ce.tar.xz cuberite-18a8caaf6d51c71b89642487807fbcbf778dc8ce.tar.zst cuberite-18a8caaf6d51c71b89642487807fbcbf778dc8ce.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Mobs/Path.cpp | 2 |
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; } |