diff options
author | mathiascode <mathiascode@users.noreply.github.com> | 2017-02-14 11:13:55 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2017-02-14 11:13:55 +0100 |
commit | 4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6 (patch) | |
tree | 7164954ec1ca29c34623248ff413d007268a17e8 /src/Blocks/BlockFarmland.h | |
parent | Improved easyinstall.sh to support macOS and FreeBSD (#3557) (diff) | |
download | cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.tar cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.tar.gz cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.tar.bz2 cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.tar.lz cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.tar.xz cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.tar.zst cuberite-4311f4a658fe2bef362aeb9b4bdbcd59c9617ad6.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Blocks/BlockFarmland.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Blocks/BlockFarmland.h b/src/Blocks/BlockFarmland.h index ddbd79335..7efd062d5 100644 --- a/src/Blocks/BlockFarmland.h +++ b/src/Blocks/BlockFarmland.h @@ -48,6 +48,7 @@ public: BLOCKTYPE UpperBlock = (a_RelY >= cChunkDef::Height - 1) ? static_cast<BLOCKTYPE>(E_BLOCK_AIR) : a_Chunk.GetBlock(a_RelX, a_RelY + 1, a_RelZ); switch (UpperBlock) { + case E_BLOCK_BEETROOTS: case E_BLOCK_CROPS: case E_BLOCK_POTATOES: case E_BLOCK_CARROTS: @@ -131,6 +132,7 @@ public: virtual bool CanSustainPlant(BLOCKTYPE a_Plant) override { return ( + (a_Plant == E_BLOCK_BEETROOTS) || (a_Plant == E_BLOCK_CROPS) || (a_Plant == E_BLOCK_CARROTS) || (a_Plant == E_BLOCK_POTATOES) || |