diff options
author | Lukas Pioch <lukas@zgow.de> | 2015-12-16 19:31:57 +0100 |
---|---|---|
committer | Lukas Pioch <lukas@zgow.de> | 2015-12-17 10:48:36 +0100 |
commit | d620dcdd085ddca34f990588aae1c314917a5d32 (patch) | |
tree | d589a1e5fb4813e100fd377bae9378c37a619370 /src/Blocks | |
parent | Merge pull request #2753 from cuberite/pathFix (diff) | |
download | cuberite-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.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); |