From e52229d0d61d9cc7a83d6143435f46f30167da4d Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 6 Jun 2012 20:33:54 +0000 Subject: Hopefully fixed lighting around chests and crops git-svn-id: http://mc-server.googlecode.com/svn/trunk@562 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/BlockID.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/BlockID.cpp b/source/BlockID.cpp index c4d6787f0..f6e2b686d 100644 --- a/source/BlockID.cpp +++ b/source/BlockID.cpp @@ -195,12 +195,15 @@ public: // Spread blocks g_BlockSpreadLightFalloff[E_BLOCK_AIR] = 1; + g_BlockSpreadLightFalloff[E_BLOCK_CHEST] = 1; + g_BlockSpreadLightFalloff[E_BLOCK_CROPS] = 1; g_BlockSpreadLightFalloff[E_BLOCK_FIRE] = 1; g_BlockSpreadLightFalloff[E_BLOCK_GLASS] = 1; g_BlockSpreadLightFalloff[E_BLOCK_GLOWSTONE] = 1; g_BlockSpreadLightFalloff[E_BLOCK_LEAVES] = 1; g_BlockSpreadLightFalloff[E_BLOCK_SIGN_POST] = 1; g_BlockSpreadLightFalloff[E_BLOCK_TORCH] = 1; + g_BlockSpreadLightFalloff[E_BLOCK_VINES] = 1; g_BlockSpreadLightFalloff[E_BLOCK_WALLSIGN] = 1; // Light in water and lava dissapears faster: g_BlockSpreadLightFalloff[E_BLOCK_LAVA] = 2; @@ -211,6 +214,8 @@ public: // Transparent blocks g_BlockTransparent[E_BLOCK_AIR] = true; g_BlockTransparent[E_BLOCK_BROWN_MUSHROOM] = true; + g_BlockTransparent[E_BLOCK_CHEST] = true; + g_BlockTransparent[E_BLOCK_CROPS] = true; g_BlockTransparent[E_BLOCK_FIRE] = true; g_BlockTransparent[E_BLOCK_GLASS] = true; g_BlockTransparent[E_BLOCK_ICE] = true; -- cgit v1.2.3