summaryrefslogtreecommitdiffstats
path: root/source/cWorld.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-09 14:44:02 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-09 14:44:02 +0200
commit2c241bb9a465bc69764c93785a770e37a513cc2d (patch)
treee4bb47195339829410d822fc186176d5496ba9ae /source/cWorld.h
parentCacti grow by themselves and by bonemeal (diff)
downloadcuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.tar
cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.tar.gz
cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.tar.bz2
cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.tar.lz
cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.tar.xz
cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.tar.zst
cuberite-2c241bb9a465bc69764c93785a770e37a513cc2d.zip
Diffstat (limited to 'source/cWorld.h')
-rw-r--r--source/cWorld.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/source/cWorld.h b/source/cWorld.h
index 8f5cf63b0..79f904f54 100644
--- a/source/cWorld.h
+++ b/source/cWorld.h
@@ -244,8 +244,8 @@ public:
void GrowTreeImage(const sSetBlockVector & a_Blocks);
- /// Grows the plant at the specified block to its ripe stage (bonemeal used); returns false if the block is not growable.
- bool GrowPlant(int a_BlockX, int a_BlockY, int a_BlockZ); // tolua_export
+ /// Grows the plant at the specified block to its ripe stage (bonemeal used); returns false if the block is not growable. If a_IsBonemeal is true, block is not grown if not allowed in world.ini
+ bool GrowPlant(int a_BlockX, int a_BlockY, int a_BlockZ, bool a_IsByBonemeal = false); // tolua_export
/// Grows a melon or a pumpkin next to the block specified (assumed to be the stem)
void GrowMelonPumpkin(int a_BlockX, int a_BlockY, int a_BlockZ, char a_BlockType); // tolua_export
@@ -361,6 +361,18 @@ private:
eWeather m_Weather;
+ int m_MaxCactusHeight;
+ int m_MaxSugarcaneHeight;
+ bool m_IsCropsBonemealable;
+ bool m_IsGrassBonemealable;
+ bool m_IsSaplingBonemealable;
+ bool m_IsMelonStemBonemealable;
+ bool m_IsMelonBonemealable;
+ bool m_IsPumpkinStemBonemealable;
+ bool m_IsPumpkinBonemealable;
+ bool m_IsSugarcaneBonemealable;
+ bool m_IsCactusBonemealable;
+
cEntityList m_RemoveEntityQueue;
cEntityList m_AllEntities;
cClientHandleList m_Clients;