fixed bug in inventory textures caused from better handling of unknown blocks
authorPerttu Ahola <celeron55@gmail.com>
Mon, 27 Jun 2011 05:46:54 +0000 (08:46 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 27 Jun 2011 05:46:54 +0000 (08:46 +0300)
src/mapnode.cpp
src/mapnode.h

index 7e26439877c497b20287446d8276cd2c33b5eff6..1fe231434dec45d7c0e86bb3a81671c87f8d6137 100644 (file)
@@ -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";
        }
 
index d975a50c46fb0bf83740b6075c652e56ff8adc39..eb4b17e485efa295cc80808ebe4ac5cd0ccfd255 100644 (file)
@@ -194,6 +194,8 @@ struct ContentFeatures
                {
                        setTexture(i, name, alpha);
                }
+               // Force inventory texture too
+               setInventoryTexture(name);
        }
 
        void setTile(u16 i, const TileSpec &tile)