From 18a8caaf6d51c71b89642487807fbcbf778dc8ce Mon Sep 17 00:00:00 2001 From: LogicParrot Date: Sun, 17 Jan 2016 12:50:26 +0200 Subject: Use IsBlockWater in cPath --- src/Mobs/Path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- cgit v1.2.3