diff options
author | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-15 08:25:20 +0100 |
---|---|---|
committer | Daniel O'Brien <marmot.daniel@gmail.com> | 2013-11-15 08:25:20 +0100 |
commit | af17faac45f8ecbfc3af64231b65d66872af3301 (patch) | |
tree | a8864aef4d4a9036249170602164927b9ca99d58 /source/Blocks/BlockCrops.h | |
parent | cProtocol add SendExperience() and debugging (diff) | |
parent | Merge pull request #349 from SamJBarney/master (diff) | |
download | cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.gz cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.bz2 cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.lz cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.xz cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.tar.zst cuberite-af17faac45f8ecbfc3af64231b65d66872af3301.zip |
Diffstat (limited to 'source/Blocks/BlockCrops.h')
-rw-r--r-- | source/Blocks/BlockCrops.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/Blocks/BlockCrops.h b/source/Blocks/BlockCrops.h index e7b320eac..9dd65aae2 100644 --- a/source/Blocks/BlockCrops.h +++ b/source/Blocks/BlockCrops.h @@ -79,6 +79,12 @@ public: { NIBBLETYPE Meta = a_World->GetBlockMeta(a_BlockX, a_BlockY, a_BlockZ); NIBBLETYPE Light = a_World->GetBlockBlockLight(a_BlockX, a_BlockY, a_BlockZ); + NIBBLETYPE SkyLight = a_World->GetBlockSkyLight(a_BlockX, a_BlockY, a_BlockZ); + + if (SkyLight > Light) + { + Light = SkyLight; + } if ((Meta < 7) && (Light > 8)) { |