diff options
author | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-27 17:30:18 +0100 |
---|---|---|
committer | STRWarrior <niels.breuker@hotmail.nl> | 2014-01-27 17:30:18 +0100 |
commit | 2cdd8f1961252da2723e7a1047e91ec4914eef57 (patch) | |
tree | 1c24508d4f9eb1f024c31eee05fe702474666a9c /src/Mobs | |
parent | Villagers don't look for new crops when they already found one. (diff) | |
download | cuberite-2cdd8f1961252da2723e7a1047e91ec4914eef57.tar cuberite-2cdd8f1961252da2723e7a1047e91ec4914eef57.tar.gz cuberite-2cdd8f1961252da2723e7a1047e91ec4914eef57.tar.bz2 cuberite-2cdd8f1961252da2723e7a1047e91ec4914eef57.tar.lz cuberite-2cdd8f1961252da2723e7a1047e91ec4914eef57.tar.xz cuberite-2cdd8f1961252da2723e7a1047e91ec4914eef57.tar.zst cuberite-2cdd8f1961252da2723e7a1047e91ec4914eef57.zip |
Diffstat (limited to 'src/Mobs')
-rw-r--r-- | src/Mobs/Villager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Mobs/Villager.cpp b/src/Mobs/Villager.cpp index b42c3ecaa..4d358e0a6 100644 --- a/src/Mobs/Villager.cpp +++ b/src/Mobs/Villager.cpp @@ -47,8 +47,8 @@ void cVillager::Tick(float a_Dt, cChunk & a_Chunk) BLOCKTYPE CropBlock = m_World->GetBlock(m_CropsPos.x, m_CropsPos.y, m_CropsPos.z); if (IsBlockFarmable(CropBlock) && m_World->GetBlockMeta(m_CropsPos.x, m_CropsPos.y, m_CropsPos.z) == 0x7) { - cBlockHandler Handler(CropBlock); - Handler.DropBlock(m_World, this, m_CropsPos.x, m_CropsPos.y, m_CropsPos.z); + cBlockHandler * Handler = cBlockHandler::GetBlockHandler(CropBlock); + Handler->DropBlock(m_World, this, m_CropsPos.x, m_CropsPos.y, m_CropsPos.z); m_World->SetBlock(m_CropsPos.x, m_CropsPos.y, m_CropsPos.z, E_BLOCK_AIR, 0); } } |