mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 09:05:19 +02:00
Fixed small error in mapnode.cpp (didn't cause any harm though)
This commit is contained in:
@@ -142,8 +142,10 @@ void init_mapnode()
|
|||||||
Initially set every block to be shown as an unknown block.
|
Initially set every block to be shown as an unknown block.
|
||||||
Don't touch CONTENT_IGNORE or CONTENT_AIR.
|
Don't touch CONTENT_IGNORE or CONTENT_AIR.
|
||||||
*/
|
*/
|
||||||
for(u16 i=0; i<=253; i++)
|
for(u16 i=0; i<256; i++)
|
||||||
{
|
{
|
||||||
|
if(i == CONTENT_IGNORE || i == CONTENT_AIR)
|
||||||
|
continue;
|
||||||
ContentFeatures *f = &g_content_features[i];
|
ContentFeatures *f = &g_content_features[i];
|
||||||
f->setAllTextures("unknown_block.png");
|
f->setAllTextures("unknown_block.png");
|
||||||
f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";
|
f->dug_item = std::string("MaterialItem ")+itos(i)+" 1";
|
||||||
|
Reference in New Issue
Block a user