summaryrefslogtreecommitdiffstats
path: root/src/Mobs
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-03-02 22:03:44 +0100
committerMattes D <github@xoft.cz>2014-03-02 22:03:44 +0100
commitd25e4d4179c00f1692c4d348baece49561c49938 (patch)
treec180208ae9759403cc29c4784103569793e6cc63 /src/Mobs
parentFixed MSVC warnings in DeprecatedBindings. (diff)
parentRemoved if condition (diff)
downloadcuberite-d25e4d4179c00f1692c4d348baece49561c49938.tar
cuberite-d25e4d4179c00f1692c4d348baece49561c49938.tar.gz
cuberite-d25e4d4179c00f1692c4d348baece49561c49938.tar.bz2
cuberite-d25e4d4179c00f1692c4d348baece49561c49938.tar.lz
cuberite-d25e4d4179c00f1692c4d348baece49561c49938.tar.xz
cuberite-d25e4d4179c00f1692c4d348baece49561c49938.tar.zst
cuberite-d25e4d4179c00f1692c4d348baece49561c49938.zip
Diffstat (limited to 'src/Mobs')
-rw-r--r--src/Mobs/Villager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Villager.cpp b/src/Mobs/Villager.cpp
index 09a6e2d09..bbd8d6aaa 100644
--- a/src/Mobs/Villager.cpp
+++ b/src/Mobs/Villager.cpp
@@ -150,7 +150,7 @@ void cVillager::HandleFarmerTryHarvestCrops()
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 = cBlockHandler::GetBlockHandler(CropBlock);
+ cBlockHandler * Handler = cBlockInfo::GetHandler(CropBlock);
cChunkInterface ChunkInterface(m_World->GetChunkMap());
cBlockInServerPluginInterface PluginInterface(*m_World);
Handler->DropBlock(ChunkInterface, *m_World, PluginInterface, this, m_CropsPos.x, m_CropsPos.y, m_CropsPos.z);