summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-14 10:32:23 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-08-14 10:32:23 +0200
commit63e68865b101f168b5d4f0e47290432d51bf2029 (patch)
tree4ccb630c231cb426272450672a5338b0536e1d8f
parentAdded partial shift+click handling to the survival inventory (diff)
downloadcuberite-63e68865b101f168b5d4f0e47290432d51bf2029.tar
cuberite-63e68865b101f168b5d4f0e47290432d51bf2029.tar.gz
cuberite-63e68865b101f168b5d4f0e47290432d51bf2029.tar.bz2
cuberite-63e68865b101f168b5d4f0e47290432d51bf2029.tar.lz
cuberite-63e68865b101f168b5d4f0e47290432d51bf2029.tar.xz
cuberite-63e68865b101f168b5d4f0e47290432d51bf2029.tar.zst
cuberite-63e68865b101f168b5d4f0e47290432d51bf2029.zip
Diffstat (limited to '')
-rw-r--r--source/BlockID.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/source/BlockID.cpp b/source/BlockID.cpp
index f9c78705b..f5317e59d 100644
--- a/source/BlockID.cpp
+++ b/source/BlockID.cpp
@@ -18,7 +18,7 @@ bool g_BlockTransparent[256];
bool g_BlockOneHitDig[256];
bool g_BlockPistonBreakable[256];
bool g_BlockIsSnowable[256];
-bool g_BlockRequiresSpecialTool[256];
+bool g_BlockRequiresSpecialTool[256];
@@ -169,13 +169,13 @@ class cBlockPropertiesInitializer
public:
cBlockPropertiesInitializer(void)
{
- memset( g_BlockLightValue, 0x00, sizeof( g_BlockLightValue ) );
- memset( g_BlockSpreadLightFalloff, 0x0f, sizeof( g_BlockSpreadLightFalloff ) ); // 0x0f means total falloff
- memset( g_BlockTransparent, 0x00, sizeof( g_BlockTransparent ) );
- memset( g_BlockOneHitDig, 0x00, sizeof( g_BlockOneHitDig ) );
- memset( g_BlockPistonBreakable, 0x00, sizeof( g_BlockPistonBreakable ) );
- memset( g_BlockIsSnowable, 0xff, sizeof( g_BlockIsSnowable)); // Set all blocks' snowable to true
- memset( g_BlockRequiresSpecialTool, false, sizeof( g_BlockRequiresSpecialTool));
+ memset(g_BlockLightValue, 0x00, sizeof(g_BlockLightValue));
+ memset(g_BlockSpreadLightFalloff, 0x0f, sizeof(g_BlockSpreadLightFalloff)); // 0x0f means total falloff
+ memset(g_BlockTransparent, 0x00, sizeof(g_BlockTransparent));
+ memset(g_BlockOneHitDig, 0x00, sizeof(g_BlockOneHitDig));
+ memset(g_BlockPistonBreakable, 0x00, sizeof(g_BlockPistonBreakable));
+ memset(g_BlockIsSnowable, 0xff, sizeof(g_BlockIsSnowable)); // Set all blocks' snowable to true
+ memset(g_BlockRequiresSpecialTool, 0x00, sizeof(g_BlockRequiresSpecialTool)); // Set all blocks to false
// Emissive blocks
g_BlockLightValue[E_BLOCK_FIRE] = 15;
@@ -224,6 +224,7 @@ public:
g_BlockTransparent[E_BLOCK_AIR] = true;
g_BlockTransparent[E_BLOCK_BROWN_MUSHROOM] = true;
g_BlockTransparent[E_BLOCK_CHEST] = true;
+ g_BlockTransparent[E_BLOCK_COBWEB] = true;
g_BlockTransparent[E_BLOCK_CROPS] = true;
g_BlockTransparent[E_BLOCK_FIRE] = true;
g_BlockTransparent[E_BLOCK_GLASS] = true;