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 15:00:14 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-09 15:00:14 +0200
commit8189487258df0490583b52322e357d7f7dfcb0e9 (patch)
tree3e5bf73b613da7a8a98b447982982f5573e1bd46 /source/cWorld.cpp
parentPlants growable by bonemeal are settable in the world.ini. Default matches vanilla MC. (diff)
downloadcuberite-8189487258df0490583b52322e357d7f7dfcb0e9.tar
cuberite-8189487258df0490583b52322e357d7f7dfcb0e9.tar.gz
cuberite-8189487258df0490583b52322e357d7f7dfcb0e9.tar.bz2
cuberite-8189487258df0490583b52322e357d7f7dfcb0e9.tar.lz
cuberite-8189487258df0490583b52322e357d7f7dfcb0e9.tar.xz
cuberite-8189487258df0490583b52322e357d7f7dfcb0e9.tar.zst
cuberite-8189487258df0490583b52322e357d7f7dfcb0e9.zip
Diffstat (limited to '')
-rw-r--r--source/cWorld.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp
index 664a25bdd..1cac3633b 100644
--- a/source/cWorld.cpp
+++ b/source/cWorld.cpp
@@ -973,7 +973,7 @@ bool cWorld::GrowPlant(int a_BlockX, int a_BlockY, int a_BlockZ, bool a_IsByBone
{
return false;
}
- m_ChunkMap->GrowSugarcane(a_BlockX, a_BlockY, a_BlockZ, 3);
+ m_ChunkMap->GrowSugarcane(a_BlockX, a_BlockY, a_BlockZ, m_MaxSugarcaneHeight);
return true;
}
@@ -983,7 +983,7 @@ bool cWorld::GrowPlant(int a_BlockX, int a_BlockY, int a_BlockZ, bool a_IsByBone
{
return false;
}
- m_ChunkMap->GrowCactus(a_BlockX, a_BlockY, a_BlockZ, 3);
+ m_ChunkMap->GrowCactus(a_BlockX, a_BlockY, a_BlockZ, m_MaxCactusHeight);
return true;
}
} // switch (BlockType)