1
0

* Logic for handling plant growth has been centralized into cBlockPlant, and all growable plants now inherit from it.

* Blocks now have an effect upon plant growth, just like in vanilla.
This commit is contained in:
Samuel Barney
2015-08-19 10:45:53 -06:00
parent dffa8a7b56
commit cc83c4641d
11 changed files with 256 additions and 30 deletions

View File

@@ -88,6 +88,9 @@ public:
/** Checks if the block can stay at the specified relative coords in the chunk */
virtual bool CanBeAt(cChunkInterface & a_ChunkInterface, int a_RelX, int a_RelY, int a_RelZ, const cChunk & a_Chunk);
/** Checks whether the block has an effect on growing the plant */
virtual bool CanSustainPlant(BLOCKTYPE a_Plant) { return false; }
/** Checks if the block can be placed at this point.
Default: CanBeAt(...)