summaryrefslogtreecommitdiffstats
path: root/source/BlockID.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-18 22:50:05 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-18 22:50:05 +0100
commit65bc09f8e803904560f56b1cfeaabfc8620d33b0 (patch)
tree6fe74aed2cd4d629c9b77a84018720244e9fdfe4 /source/BlockID.cpp
parentCraftingRecipes parse now dumps lines it cannot parse. (diff)
downloadcuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.tar
cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.tar.gz
cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.tar.bz2
cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.tar.lz
cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.tar.xz
cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.tar.zst
cuberite-65bc09f8e803904560f56b1cfeaabfc8620d33b0.zip
Diffstat (limited to 'source/BlockID.cpp')
-rw-r--r--source/BlockID.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/source/BlockID.cpp b/source/BlockID.cpp
index faa19cfe9..d8e750f46 100644
--- a/source/BlockID.cpp
+++ b/source/BlockID.cpp
@@ -331,9 +331,19 @@ public:
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
+
+ // Setting bools to true must be done manually, see http://forum.mc-server.org/showthread.php?tid=629&pid=5415#pid5415
+ for (int i = 0; i < ARRAYCOUNT(g_BlockIsSnowable); i++)
+ {
+ g_BlockIsSnowable[i] = true;
+ }
memset(g_BlockRequiresSpecialTool, 0x00, sizeof(g_BlockRequiresSpecialTool)); // Set all blocks to false
- memset(g_BlockIsSolid, 0xff, sizeof(g_BlockIsSolid)); // Set all blocks to true
+
+ // Setting bools to true must be done manually, see http://forum.mc-server.org/showthread.php?tid=629&pid=5415#pid5415
+ for (int i = 0; i < ARRAYCOUNT(g_BlockIsSolid); i++)
+ {
+ g_BlockIsSolid[i] = true;
+ }
// Emissive blocks
g_BlockLightValue[E_BLOCK_FIRE] = 15;