summaryrefslogtreecommitdiff
path: root/src/mapnode.cpp
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-05-09 21:41:16 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-05-09 21:41:16 +0300
commit0674db4a6b687a73637844fa354d2ac662e42820 (patch)
tree0fd303ffdbca9d1a7c60c13c3ca4aeddd28c7c57 /src/mapnode.cpp
parent8c3b4fed10ce5bad422436b8b804fd1fd71b0e65 (diff)
parent2c4eb198c37a3b6cc63a277916139c94922e442f (diff)
downloadminetest-0674db4a6b687a73637844fa354d2ac662e42820.tar.gz
minetest-0674db4a6b687a73637844fa354d2ac662e42820.tar.bz2
minetest-0674db4a6b687a73637844fa354d2ac662e42820.zip
merged CiaranG's changes: the glass block
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];