summaryrefslogtreecommitdiffstats
path: root/source/Blocks
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2013-11-14 17:53:09 +0100
committerSamuel Barney <samjbarney@gmail.com>2013-11-14 17:53:09 +0100
commit570aedb927e706109b66e7bea6a7acf505382dc7 (patch)
tree86d233cccbe22611ff89c2e8d0331afe11b8bb6a /source/Blocks
parentAdded cNoteEntity to Lua API. (diff)
downloadcuberite-570aedb927e706109b66e7bea6a7acf505382dc7.tar
cuberite-570aedb927e706109b66e7bea6a7acf505382dc7.tar.gz
cuberite-570aedb927e706109b66e7bea6a7acf505382dc7.tar.bz2
cuberite-570aedb927e706109b66e7bea6a7acf505382dc7.tar.lz
cuberite-570aedb927e706109b66e7bea6a7acf505382dc7.tar.xz
cuberite-570aedb927e706109b66e7bea6a7acf505382dc7.tar.zst
cuberite-570aedb927e706109b66e7bea6a7acf505382dc7.zip
Diffstat (limited to '')
-rw-r--r--source/Blocks/BlockCrops.h6
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))
{