From c5e583e059bc31c0dc57496b23f5c97db1f5a3e3 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Tue, 24 May 2011 17:52:04 +0100 Subject: Added fences (but still needs an icon or something to display in inventory) --- src/mapnode.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/mapnode.cpp') 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; -- cgit v1.2.3