summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-03 22:14:52 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-02-03 22:14:52 +0100
commit6bbba2644d520204c50b48d67ca294fcd9b0a5c4 (patch)
treec5b2afbcedac878214228cef68d3bebd96c1fd07 /src
parentServer now handles join messages also (diff)
downloadcuberite-6bbba2644d520204c50b48d67ca294fcd9b0a5c4.tar
cuberite-6bbba2644d520204c50b48d67ca294fcd9b0a5c4.tar.gz
cuberite-6bbba2644d520204c50b48d67ca294fcd9b0a5c4.tar.bz2
cuberite-6bbba2644d520204c50b48d67ca294fcd9b0a5c4.tar.lz
cuberite-6bbba2644d520204c50b48d67ca294fcd9b0a5c4.tar.xz
cuberite-6bbba2644d520204c50b48d67ca294fcd9b0a5c4.tar.zst
cuberite-6bbba2644d520204c50b48d67ca294fcd9b0a5c4.zip
Diffstat (limited to '')
-rw-r--r--src/Blocks/BlockCrops.h2
-rw-r--r--src/Blocks/BlockFarmland.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/Blocks/BlockCrops.h b/src/Blocks/BlockCrops.h
index 4c4ac21be..ffc2b3f8b 100644
--- a/src/Blocks/BlockCrops.h
+++ b/src/Blocks/BlockCrops.h
@@ -87,7 +87,7 @@ public:
if ((Meta < 7) && (Light > 8))
{
- a_Chunk.FastSetBlock(a_RelX, a_RelY, a_RelZ, E_BLOCK_CROPS, ++Meta);
+ a_Chunk.FastSetBlock(a_RelX, a_RelY, a_RelZ, m_BlockType, ++Meta);
}
else if (Light < 9)
{
diff --git a/src/Blocks/BlockFarmland.h b/src/Blocks/BlockFarmland.h
index 101ab8e34..b720ccd14 100644
--- a/src/Blocks/BlockFarmland.h
+++ b/src/Blocks/BlockFarmland.h
@@ -90,6 +90,8 @@ public:
switch (a_Chunk.GetBlock(a_RelX, a_RelY + 1, a_RelZ))
{
case E_BLOCK_CROPS:
+ case E_BLOCK_POTATOES:
+ case E_BLOCK_CARROTS:
case E_BLOCK_MELON_STEM:
case E_BLOCK_PUMPKIN_STEM:
{