summaryrefslogtreecommitdiffstats
path: root/source/cWorld.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-09 14:03:49 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-09 14:03:49 +0200
commitec61713221292914cd8e9e12bb77fac9e76e42eb (patch)
tree99acb7704519206e83e91235c78fa0f1ec22cd83 /source/cWorld.cpp
parentBonemeal is consumed in survival mode when used on growable blocks (diff)
downloadcuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.tar
cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.tar.gz
cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.tar.bz2
cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.tar.lz
cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.tar.xz
cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.tar.zst
cuberite-ec61713221292914cd8e9e12bb77fac9e76e42eb.zip
Diffstat (limited to 'source/cWorld.cpp')
-rw-r--r--source/cWorld.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp
index 7f6390dca..b8e785dd5 100644
--- a/source/cWorld.cpp
+++ b/source/cWorld.cpp
@@ -921,6 +921,12 @@ bool cWorld::GrowPlant(int a_BlockX, int a_BlockY, int a_BlockZ)
m_ChunkMap->GrowSugarcane(a_BlockX, a_BlockY, a_BlockZ, 3);
return true;
}
+
+ case E_BLOCK_CACTUS:
+ {
+ m_ChunkMap->GrowCactus(a_BlockX, a_BlockY, a_BlockZ, 3);
+ return true;
+ }
} // switch (BlockType)
return false;
}