1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Added glass, with rendering and furnace support.

This commit is contained in:
Ciaran Gultnieks 2011-05-09 19:22:07 +01:00
parent 59c4a342a9
commit 2e1a69c3b1
7 changed files with 100 additions and 1 deletions

View file

@ -204,7 +204,17 @@ void init_mapnode()
f->setAllTextures("[noalpha:leaves.png");
}
f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";
i = CONTENT_GLASS;
f = &g_content_features[i];
f->light_propagates = true;
f->param_type = CPT_LIGHT;
f->is_ground_content = true;
f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";
f->solidness = 0; // drawn separately, makes no faces
f->setInventoryTextureCube("glass.png", "glass.png", "glass.png");
// Deprecated
i = CONTENT_COALSTONE;
f = &g_content_features[i];