diff options
author | tonibm19 <tonibm19@gmail.com> | 2014-02-16 18:18:07 +0100 |
---|---|---|
committer | tonibm19 <tonibm19@gmail.com> | 2014-02-16 18:18:07 +0100 |
commit | 60bcf2807a293dcf0a6fcc604a7e36c824a02110 (patch) | |
tree | 8ae691711291d2ecb1c06b0365079420f44b0a21 /src/Mobs/Monster.cpp | |
parent | Merge pull request #687 from worktycho/Flags (diff) | |
download | cuberite-60bcf2807a293dcf0a6fcc604a7e36c824a02110.tar cuberite-60bcf2807a293dcf0a6fcc604a7e36c824a02110.tar.gz cuberite-60bcf2807a293dcf0a6fcc604a7e36c824a02110.tar.bz2 cuberite-60bcf2807a293dcf0a6fcc604a7e36c824a02110.tar.lz cuberite-60bcf2807a293dcf0a6fcc604a7e36c824a02110.tar.xz cuberite-60bcf2807a293dcf0a6fcc604a7e36c824a02110.tar.zst cuberite-60bcf2807a293dcf0a6fcc604a7e36c824a02110.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Mobs/Monster.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Monster.cpp b/src/Mobs/Monster.cpp index 9817901c9..1690d3a31 100644 --- a/src/Mobs/Monster.cpp +++ b/src/Mobs/Monster.cpp @@ -142,11 +142,11 @@ void cMonster::TickPathFinding() BLOCKTYPE BlockAtYPP = m_World->GetBlock(gCrossCoords[i].x + PosX, PosY + 2, gCrossCoords[i].z + PosZ); BLOCKTYPE BlockAtYM = m_World->GetBlock(gCrossCoords[i].x + PosX, PosY - 1, gCrossCoords[i].z + PosZ); - if (!g_BlockIsSolid[BlockAtY] && !g_BlockIsSolid[BlockAtYP] && !IsBlockLava(BlockAtYM)) + if (!g_BlockIsSolid[BlockAtY] && !g_BlockIsSolid[BlockAtYP] && !IsBlockLava(BlockAtYM) && BlockAtY!=E_BLOCK_FENCE && BlockAtY!=E_BLOCK_FENCE_GATE) { m_PotentialCoordinates.push_back(Vector3d((gCrossCoords[i].x + PosX), PosY, gCrossCoords[i].z + PosZ)); } - else if (g_BlockIsSolid[BlockAtY] && !g_BlockIsSolid[BlockAtYP] && !g_BlockIsSolid[BlockAtYPP] && !IsBlockLava(BlockAtYM)) + else if (g_BlockIsSolid[BlockAtY] && !g_BlockIsSolid[BlockAtYP] && !g_BlockIsSolid[BlockAtYPP] && !IsBlockLava(BlockAtYM) && BlockAtY!=E_BLOCK_FENCE && BlockAtY!=E_BLOCK_FENCE_GATE) { m_PotentialCoordinates.push_back(Vector3d((gCrossCoords[i].x + PosX), PosY + 1, gCrossCoords[i].z + PosZ)); } |