Skip to content
Snippets Groups Projects
Commit ab0cc1bb authored by Perttu Ahola's avatar Perttu Ahola
Browse files

better handling of unknown blocks on client

parent cf9a1f01
No related branches found
No related tags found
No related merge requests found
data/unknown_block.png

582 B

......@@ -138,6 +138,18 @@ void init_mapnode()
f->tiles[j].material_type = initial_material_type;
}
/*
Initially set every block to be shown as an unknown block.
Don't touch CONTENT_IGNORE or CONTENT_AIR.
*/
for(u16 i=0; i<=253; i++)
{
ContentFeatures *f = &g_content_features[i];
f->setAllTextures("unknown_block.png");
f->setInventoryTextureCube("unknown_block.png", "unknown_block.png", "unknown_block.png");
f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";
}
/*
Initialize mapnode content
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment