Skip to content
Snippets Groups Projects
Commit ccf5eae7 authored by Perttu Ahola's avatar Perttu Ahola
Browse files

fixed bug in inventory textures caused from better handling of unknown blocks

parent 3e40235c
No related branches found
No related tags found
No related merge requests found
...@@ -146,7 +146,6 @@ void init_mapnode() ...@@ -146,7 +146,6 @@ void init_mapnode()
{ {
ContentFeatures *f = &g_content_features[i]; ContentFeatures *f = &g_content_features[i];
f->setAllTextures("unknown_block.png"); 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"; f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";
} }
......
...@@ -194,6 +194,8 @@ struct ContentFeatures ...@@ -194,6 +194,8 @@ struct ContentFeatures
{ {
setTexture(i, name, alpha); setTexture(i, name, alpha);
} }
// Force inventory texture too
setInventoryTexture(name);
} }
void setTile(u16 i, const TileSpec &tile) void setTile(u16 i, const TileSpec &tile)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment