From 277a18626deedb55db0cacc557a9d8292f65fc7e Mon Sep 17 00:00:00 2001 From: Samuel Barney Date: Sat, 12 Oct 2013 16:38:07 -0600 Subject: [PATCH] Removed faulty code dealing with water. --- source/Blocks/BlockCrops.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/Blocks/BlockCrops.h b/source/Blocks/BlockCrops.h index 81d35a06..e7b320ea 100644 --- a/source/Blocks/BlockCrops.h +++ b/source/Blocks/BlockCrops.h @@ -78,14 +78,13 @@ public: void OnUpdate(cWorld * a_World, int a_BlockX, int a_BlockY, int a_BlockZ) override { NIBBLETYPE Meta = a_World->GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ); - NIBBLETYPE Water = a_World->GetBlockMeta(a_BlockX, a_BlockY - 1, a_BlockZ); NIBBLETYPE Light = a_World->GetBlockBlockLight(a_BlockX, a_BlockY, a_BlockZ); - if ((Meta < 7) && (Water > 0) && (Light > 8)) + if ((Meta < 7) && (Light > 8)) { a_World->FastSetBlock(a_BlockX, a_BlockY, a_BlockZ, E_BLOCK_CROPS, ++Meta); } - else if ((!Water) || (Light < 9)) + else if (Light < 9) { a_World->DigBlock(a_BlockX, a_BlockY, a_BlockZ); }