diff options
author | Ciaran Gultnieks <ciaran@ciarang.com> | 2011-05-24 17:52:04 +0100 |
---|---|---|
committer | Ciaran Gultnieks <ciaran@ciarang.com> | 2011-05-24 17:52:04 +0100 |
commit | c5e583e059bc31c0dc57496b23f5c97db1f5a3e3 (patch) | |
tree | 7f82934c8c80d5588fcdb4f01b23a7d0daced8d8 /src/mapnode.cpp | |
parent | 8bbc512fe58d36ba1c89ec0160cf3390f25e4cc1 (diff) | |
download | minetest-c5e583e059bc31c0dc57496b23f5c97db1f5a3e3.tar.gz minetest-c5e583e059bc31c0dc57496b23f5c97db1f5a3e3.tar.bz2 minetest-c5e583e059bc31c0dc57496b23f5c97db1f5a3e3.zip |
Added fences (but still needs an icon or something to display in inventory)
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r-- | src/mapnode.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp index 00ebef840..199a5c656 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -216,6 +216,13 @@ void init_mapnode() f->solidness = 0; // drawn separately, makes no faces f->setInventoryTextureCube("glass.png", "glass.png", "glass.png"); + i = CONTENT_FENCE; + 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 // Deprecated i = CONTENT_COALSTONE; |