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 13:32:34 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-09 13:32:34 +0200
commit0e236c03f96860ff66d8e8bd7ae22c400f55e197 (patch)
tree3df8522a64c34a5c307d6fc1828926f9eb493643 /source/cWorld.cpp
parentTall grass finally drops seeds (diff)
downloadcuberite-0e236c03f96860ff66d8e8bd7ae22c400f55e197.tar
cuberite-0e236c03f96860ff66d8e8bd7ae22c400f55e197.tar.gz
cuberite-0e236c03f96860ff66d8e8bd7ae22c400f55e197.tar.bz2
cuberite-0e236c03f96860ff66d8e8bd7ae22c400f55e197.tar.lz
cuberite-0e236c03f96860ff66d8e8bd7ae22c400f55e197.tar.xz
cuberite-0e236c03f96860ff66d8e8bd7ae22c400f55e197.tar.zst
cuberite-0e236c03f96860ff66d8e8bd7ae22c400f55e197.zip
Diffstat (limited to '')
-rw-r--r--source/cWorld.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/source/cWorld.cpp b/source/cWorld.cpp
index 048dc1e30..7f6390dca 100644
--- a/source/cWorld.cpp
+++ b/source/cWorld.cpp
@@ -844,7 +844,7 @@ void cWorld::GrowTreeImage(const sSetBlockVector & a_Blocks)
-void cWorld::GrowPlant(int a_BlockX, int a_BlockY, int a_BlockZ)
+bool cWorld::GrowPlant(int a_BlockX, int a_BlockY, int a_BlockZ)
{
BLOCKTYPE BlockType;
NIBBLETYPE BlockMeta;
@@ -857,7 +857,7 @@ void cWorld::GrowPlant(int a_BlockX, int a_BlockY, int a_BlockZ)
{
FastSetBlock(a_BlockX, a_BlockY, a_BlockZ, BlockType, 7);
}
- break;
+ return true;
}
case E_BLOCK_MELON_STEM:
@@ -871,13 +871,13 @@ void cWorld::GrowPlant(int a_BlockX, int a_BlockY, int a_BlockZ)
{
GrowMelonPumpkin(a_BlockX, a_BlockY, a_BlockZ, BlockType);
}
- break;
+ return true;
}
case E_BLOCK_SAPLING:
{
GrowTreeFromSapling(a_BlockX, a_BlockY, a_BlockZ, BlockMeta);
- break;
+ return true;
}
case E_BLOCK_GRASS:
@@ -913,15 +913,16 @@ void cWorld::GrowPlant(int a_BlockX, int a_BlockY, int a_BlockZ)
} // switch (random spawn block)
FastSetBlock(a_BlockX + OfsX, a_BlockY + OfsY + 1, a_BlockZ + OfsZ, SpawnType, SpawnMeta);
} // for i - 50 times
- break;
+ return true;
}
case E_BLOCK_SUGARCANE:
{
m_ChunkMap->GrowSugarcane(a_BlockX, a_BlockY, a_BlockZ, 3);
- break;
+ return true;
}
} // switch (BlockType)
+ return false;
}