From: Perttu Ahola Date: Mon, 27 Jun 2011 05:46:54 +0000 (+0300) Subject: fixed bug in inventory textures caused from better handling of unknown blocks X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=ccf5eae7512d3b6601fb056fd8781f5954b09e25;p=zefram%2Fminetest%2Fminetest_engine.git fixed bug in inventory textures caused from better handling of unknown blocks --- diff --git a/src/mapnode.cpp b/src/mapnode.cpp index 7e264398..1fe23143 100644 --- a/src/mapnode.cpp +++ b/src/mapnode.cpp @@ -146,7 +146,6 @@ void init_mapnode() { ContentFeatures *f = &g_content_features[i]; f->setAllTextures("unknown_block.png"); - f->setInventoryTextureCube("unknown_block.png", "unknown_block.png", "unknown_block.png"); f->dug_item = std::string("MaterialItem ")+itos(i)+" 1"; } diff --git a/src/mapnode.h b/src/mapnode.h index d975a50c..eb4b17e4 100644 --- a/src/mapnode.h +++ b/src/mapnode.h @@ -194,6 +194,8 @@ struct ContentFeatures { setTexture(i, name, alpha); } + // Force inventory texture too + setInventoryTexture(name); } void setTile(u16 i, const TileSpec &tile)