diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-05-24 20:13:21 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-05-24 20:13:21 +0300 |
commit | 12ca835e1404a6c9750a17d327a7d8bd97bafcb4 (patch) | |
tree | c016e41b3177610b5433f4eba2e91350537f8cba /src/mapnode.cpp | |
parent | 0c5f58036531e85ab4c0c7d9ad75466c74aaafe7 (diff) | |
parent | c5e583e059bc31c0dc57496b23f5c97db1f5a3e3 (diff) | |
download | minetest-12ca835e1404a6c9750a17d327a7d8bd97bafcb4.tar.gz minetest-12ca835e1404a6c9750a17d327a7d8bd97bafcb4.tar.bz2 minetest-12ca835e1404a6c9750a17d327a7d8bd97bafcb4.zip |
Merged CiaranG's fence and fixed two things
Diffstat (limited to 'src/mapnode.cpp')
-rw-r--r-- | src/mapnode.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mapnode.cpp b/src/mapnode.cpp index c8e4e8449..ca36697ef 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -216,6 +216,14 @@ 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 + f->air_equivalent = true; // grass grows underneath // Deprecated i = CONTENT_COALSTONE; |