A very poor (but better than nothing) inventory icon for fences
authorCiaran Gultnieks <ciaran@ciarang.com>
Tue, 24 May 2011 22:18:41 +0000 (23:18 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Tue, 24 May 2011 22:18:41 +0000 (23:18 +0100)
data/item_fence.png [new file with mode: 0644]
src/mapnode.cpp

diff --git a/data/item_fence.png b/data/item_fence.png
new file mode 100644 (file)
index 0000000..76a4618
Binary files /dev/null and b/data/item_fence.png differ
index ca36697efa93f1e2fd01f1cccd468be0c719a74c..9a8a09a15bd4832e06d17aedbc40da233a25b077 100644 (file)
@@ -224,6 +224,7 @@ void init_mapnode()
        f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";
        f->solidness = 0; // drawn separately, makes no faces
        f->air_equivalent = true; // grass grows underneath
+       f->setInventoryTexture("item_fence.png");
 
        // Deprecated
        i = CONTENT_COALSTONE;