summaryrefslogtreecommitdiffstats
path: root/src/Blocks
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2015-12-17 11:37:20 +0100
committerLukas Pioch <lukas@zgow.de>2015-12-17 11:37:20 +0100
commit1395ff3ca4baf554f8b47a73ebd7bbf7635f59cb (patch)
treed589a1e5fb4813e100fd377bae9378c37a619370 /src/Blocks
parentMerge pull request #2753 from cuberite/pathFix (diff)
parentMoved variables into scope, removed unused variables and fixed variables (diff)
downloadcuberite-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 '')
-rw-r--r--src/Blocks/BlockCrops.h9
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);