diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-09 14:44:02 +0200 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-06-09 14:44:02 +0200 |
commit | 2c241bb9a465bc69764c93785a770e37a513cc2d (patch) | |
tree | e4bb47195339829410d822fc186176d5496ba9ae /source/cWorld.h | |
parent | Cacti grow by themselves and by bonemeal (diff) | |
download | cuberite-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.h | 16 |
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;
|