summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-06 22:33:54 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-06-06 22:33:54 +0200
commite52229d0d61d9cc7a83d6143435f46f30167da4d (patch)
treeee438f3741383c443585fe19b79af9cd1d7e645d
parentItem-dropping code rewritten and centralized - now there's only one place to modify if we want to split or merge same-item drops: cWorld:SpawnItemPickups(). Also, mined blocks can now drop more items, and they recognize if they're being mined by the correct tool. (diff)
downloadcuberite-e52229d0d61d9cc7a83d6143435f46f30167da4d.tar
cuberite-e52229d0d61d9cc7a83d6143435f46f30167da4d.tar.gz
cuberite-e52229d0d61d9cc7a83d6143435f46f30167da4d.tar.bz2
cuberite-e52229d0d61d9cc7a83d6143435f46f30167da4d.tar.lz
cuberite-e52229d0d61d9cc7a83d6143435f46f30167da4d.tar.xz
cuberite-e52229d0d61d9cc7a83d6143435f46f30167da4d.tar.zst
cuberite-e52229d0d61d9cc7a83d6143435f46f30167da4d.zip
-rw-r--r--source/BlockID.cpp5
1 files changed, 5 insertions, 0 deletions
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;