summaryrefslogtreecommitdiffstats
path: root/source/cChunkMap.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-07 23:07:21 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-07 23:07:21 +0200
commit876014b8e8941f6de69f07e3b4cc354e9bdf3e57 (patch)
treef6fab0234d43774675f4a4d69b3c711b6aaafb33 /source/cChunkMap.cpp
parentNightbuild: bindings are automatically update before the build (diff)
downloadcuberite-876014b8e8941f6de69f07e3b4cc354e9bdf3e57.tar
cuberite-876014b8e8941f6de69f07e3b4cc354e9bdf3e57.tar.gz
cuberite-876014b8e8941f6de69f07e3b4cc354e9bdf3e57.tar.bz2
cuberite-876014b8e8941f6de69f07e3b4cc354e9bdf3e57.tar.lz
cuberite-876014b8e8941f6de69f07e3b4cc354e9bdf3e57.tar.xz
cuberite-876014b8e8941f6de69f07e3b4cc354e9bdf3e57.tar.zst
cuberite-876014b8e8941f6de69f07e3b4cc354e9bdf3e57.zip
Diffstat (limited to '')
-rw-r--r--source/cChunkMap.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/cChunkMap.cpp b/source/cChunkMap.cpp
index 1db55485b..1638e2b06 100644
--- a/source/cChunkMap.cpp
+++ b/source/cChunkMap.cpp
@@ -1084,6 +1084,23 @@ void cChunkMap::GetChunkStats(int & a_NumChunksValid, int & a_NumChunksDirty)
+void cChunkMap::GrowMelonPumpkin(int a_BlockX, int a_BlockY, int a_BlockZ, BLOCKTYPE a_BlockType, MTRand & a_Rand)
+{
+ int ChunkX, ChunkZ;
+ cChunkDef::AbsoluteToRelative(a_BlockX, a_BlockY, a_BlockZ, ChunkX, ChunkZ);
+
+ cCSLock Lock(m_CSLayers);
+ cChunkPtr Chunk = GetChunkNoLoad(ChunkX, ZERO_CHUNK_Y, ChunkZ);
+ if (Chunk != NULL)
+ {
+ Chunk->GrowMelonPumpkin(a_BlockX, a_BlockY, a_BlockZ, a_BlockType, a_Rand);
+ }
+}
+
+
+
+
+
void cChunkMap::SetNextBlockTick(int a_BlockX, int a_BlockY, int a_BlockZ)
{
int ChunkX, ChunkZ;