]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/mapnode.cpp
+ paper, book, bookshelf
[dragonfireclient.git] / src / mapnode.cpp
index 954c85f2f7d9e75319ed9249a214525524f7bc9f..7e97a8d04e22ba2e85688a9bb37d3e018585da01 100644 (file)
@@ -251,6 +251,17 @@ void init_mapnode()
        f->solidness = 0; // drawn separately, makes no faces
        f->walkable = false;
 
+       i = CONTENT_BOOKSHELF;
+       f = &g_content_features[i];
+       f->setAllTextures("bookshelf.png");
+       f->setTexture(0, "wood.png");
+       f->setTexture(1, "wood.png");
+       // FIXME: setInventoryTextureCube() only cares for the first texture
+       f->setInventoryTextureCube("bookshelf.png", "bookshelf.png", "bookshelf.png");
+       //f->setInventoryTextureCube("wood.png", "bookshelf.png", "bookshelf.png");
+       f->param_type = CPT_MINERAL;
+       f->is_ground_content = true;
+
        i = CONTENT_GLASS;
        f = &g_content_features[i];
        f->light_propagates = true;