summaryrefslogtreecommitdiffstats
path: root/src/Blocks/BlockCrops.h
diff options
context:
space:
mode:
authorLukas Pioch <lukas@zgow.de>2015-12-16 19:31:57 +0100
committerLukas Pioch <lukas@zgow.de>2015-12-17 10:48:36 +0100
commitd620dcdd085ddca34f990588aae1c314917a5d32 (patch)
treed589a1e5fb4813e100fd377bae9378c37a619370 /src/Blocks/BlockCrops.h
parentMerge pull request #2753 from cuberite/pathFix (diff)
downloadcuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar
cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.gz
cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.bz2
cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.lz
cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.xz
cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.tar.zst
cuberite-d620dcdd085ddca34f990588aae1c314917a5d32.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);