mirror of
https://github.com/minetest/minetest.git
synced 2024-11-30 03:23:45 +01:00
better handling of unknown blocks on client
This commit is contained in:
parent
cf9a1f0109
commit
ab0cc1bb47
BIN
data/unknown_block.png
Normal file
BIN
data/unknown_block.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 582 B |
@ -138,6 +138,18 @@ void init_mapnode()
|
|||||||
f->tiles[j].material_type = initial_material_type;
|
f->tiles[j].material_type = initial_material_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Initially set every block to be shown as an unknown block.
|
||||||
|
Don't touch CONTENT_IGNORE or CONTENT_AIR.
|
||||||
|
*/
|
||||||
|
for(u16 i=0; i<=253; i++)
|
||||||
|
{
|
||||||
|
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";
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Initialize mapnode content
|
Initialize mapnode content
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user