summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockDirt.h
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-05-07 12:59:48 +0200
committerHowaner <franzi.moos@googlemail.com>2014-05-07 12:59:48 +0200
commit36a2aa2f212212426f94db736eb8f889340c5e00 (patch)
treed2b4b0f8fa0a9d08231f9b68f74855340f92f9f8 /src/Blocks/BlockDirt.h
parentMerge branch 'master' into Slabs (diff)
downloadcuberite-36a2aa2f212212426f94db736eb8f889340c5e00.tar
cuberite-36a2aa2f212212426f94db736eb8f889340c5e00.tar.gz
cuberite-36a2aa2f212212426f94db736eb8f889340c5e00.tar.bz2
cuberite-36a2aa2f212212426f94db736eb8f889340c5e00.tar.lz
cuberite-36a2aa2f212212426f94db736eb8f889340c5e00.tar.xz
cuberite-36a2aa2f212212426f94db736eb8f889340c5e00.tar.zst
cuberite-36a2aa2f212212426f94db736eb8f889340c5e00.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockDirt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Blocks/BlockDirt.h b/src/Blocks/BlockDirt.h
index 0c550257e..b8b23086b 100644
--- a/src/Blocks/BlockDirt.h
+++ b/src/Blocks/BlockDirt.h
@@ -38,7 +38,7 @@ public:
BLOCKTYPE Above;
NIBBLETYPE AboveMeta;
a_Chunk.GetBlockTypeMeta(a_RelX, a_RelY + 1, a_RelZ, Above, AboveMeta);
- if ((IsBlockWater(Above)) || !cBlockInfo::GetHandler(Above)->CanChangeDirtToGrass(Above, AboveMeta))
+ if ((IsBlockWater(Above)) || !cBlockInfo::GetHandler(Above)->CanDirtGrowGrass(AboveMeta))
{
a_Chunk.FastSetBlock(a_RelX, a_RelY, a_RelZ, E_BLOCK_DIRT, E_META_DIRT_NORMAL);
return;
@@ -79,7 +79,7 @@ public:
BLOCKTYPE AboveDest;
NIBBLETYPE AboveMeta;
Chunk->GetBlockTypeMeta(BlockX, BlockY + 1, BlockZ, AboveDest, AboveMeta);
- if ((!IsBlockWater(AboveDest)) && (cBlockInfo::GetHandler(AboveDest)->CanChangeDirtToGrass(AboveDest, AboveMeta)))
+ if ((!IsBlockWater(AboveDest)) && (cBlockInfo::GetHandler(AboveDest)->CanDirtGrowGrass(AboveMeta)))
{
if (!cRoot::Get()->GetPluginManager()->CallHookBlockSpread((cWorld*) &a_WorldInterface, BlockX * cChunkDef::Width, BlockY, BlockZ * cChunkDef::Width, ssGrassSpread))
{