diff options
author | Lukas Pioch <lukas@zgow.de> | 2015-12-17 11:37:20 +0100 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2015-12-17 11:37:20 +0100 |
commit | 1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb (patch) | |
tree | d589a1e5fb4813e100fd377bae9378c37a619370 /src/Blocks | |
parent | Merge pull request #2753 from cuberite/pathFix (diff) | |
parent | Moved variables into scope, removed unused variables and fixed variables (diff) | |
download | cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.gz cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.bz2 cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.lz cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.xz cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.tar.zst cuberite-1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb.zip |
Diffstat (limited to 'src/Blocks')
-rw-r--r-- | src/Blocks/BlockCrops.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/Blocks/BlockCrops.h b/src/Blocks/BlockCrops.h index 9014f7046..0751d19f0 100644 --- a/src/Blocks/BlockCrops.h +++ b/src/Blocks/BlockCrops.h @@ -75,14 +75,7 @@ public: virtual void OnUpdate(cChunkInterface & cChunkInterface, cWorldInterface & a_WorldInterface, cBlockPluginInterface & a_PluginInterface, cChunk & a_Chunk, int a_RelX, int a_RelY, int a_RelZ) override { - NIBBLETYPE Meta = a_Chunk.GetMeta (a_RelX, a_RelY, a_RelZ); - NIBBLETYPE Light = a_Chunk.GetBlockLight(a_RelX, a_RelY, a_RelZ); - NIBBLETYPE SkyLight = a_Chunk.GetSkyLight (a_RelX, a_RelY, a_RelZ); - - if (SkyLight > Light) - { - Light = SkyLight; - } + NIBBLETYPE Meta = a_Chunk.GetMeta(a_RelX, a_RelY, a_RelZ); // Check to see if the plant can grow auto Action = CanGrow(a_Chunk, a_RelX, a_RelY, a_RelZ); |