aboutsummaryrefslogtreecommitdiff
path: root/src/mapnode.cpp
diff options
context:
space:
mode:
authorCiaran Gultnieks <ciaran@ciarang.com>2011-05-09 19:22:07 +0100
committerCiaran Gultnieks <ciaran@ciarang.com>2011-05-09 19:22:07 +0100
commit2e1a69c3b1154c189816c8072ce3a4dbcc9fa163 (patch)
treefa91a48b279752ffc8fdc762cbd0e000a794836a /src/mapnode.cpp
parent59c4a342a9625fe37e9a7aa755e6deca14c3a110 (diff)
downloadminetest-2e1a69c3b1154c189816c8072ce3a4dbcc9fa163.tar.gz
minetest-2e1a69c3b1154c189816c8072ce3a4dbcc9fa163.tar.bz2
minetest-2e1a69c3b1154c189816c8072ce3a4dbcc9fa163.zip
Added glass, with rendering and furnace support.
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r--src/mapnode.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp
index 6deebd56d..c27f4848b 100644
--- a/src/mapnode.cpp
+++ b/src/mapnode.cpp
@@ -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];