summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwiseoldman95 <softwatt@gmx.com>2015-05-06 08:27:47 +0200
committerwiseoldman95 <softwatt@gmx.com>2015-05-06 08:27:47 +0200
commitc6dd455d7211a4f0819fc0a0b7839b10732965bd (patch)
tree7dd6bf3cb89b77e86e8b65d2d97b374f920b365f
parentPF - Fixed mobs not reaching leaning player (diff)
downloadcuberite-c6dd455d7211a4f0819fc0a0b7839b10732965bd.tar
cuberite-c6dd455d7211a4f0819fc0a0b7839b10732965bd.tar.gz
cuberite-c6dd455d7211a4f0819fc0a0b7839b10732965bd.tar.bz2
cuberite-c6dd455d7211a4f0819fc0a0b7839b10732965bd.tar.lz
cuberite-c6dd455d7211a4f0819fc0a0b7839b10732965bd.tar.xz
cuberite-c6dd455d7211a4f0819fc0a0b7839b10732965bd.tar.zst
cuberite-c6dd455d7211a4f0819fc0a0b7839b10732965bd.zip
Diffstat (limited to '')
-rw-r--r--src/Mobs/Path.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Mobs/Path.cpp b/src/Mobs/Path.cpp
index a0b83f593..84d888bf2 100644
--- a/src/Mobs/Path.cpp
+++ b/src/Mobs/Path.cpp
@@ -60,12 +60,12 @@ cPath::cPath(
{
BLOCKTYPE BlockType;
NIBBLETYPE BlockMeta;
- int RelX = m_Destination.x - m_Chunk->GetPosX() * cChunkDef::Width;
- int RelZ = m_Destination.z - m_Chunk->GetPosZ() * cChunkDef::Width;
+ int RelX = m_Destination.x - Chunk->GetPosX() * cChunkDef::Width;
+ int RelZ = m_Destination.z - Chunk->GetPosZ() * cChunkDef::Width;
bool inwater = false;
for (;;)
{
- m_Chunk->GetBlockTypeMeta(RelX, m_Destination.y, RelZ, BlockType, BlockMeta);
+ Chunk->GetBlockTypeMeta(RelX, m_Destination.y, RelZ, BlockType, BlockMeta);
if (BlockType != E_BLOCK_STATIONARY_WATER)
{
break;