get unknowns drawing right

This commit is contained in:
darkrose 2015-05-31 03:10:53 +10:00
parent 1801be4aea
commit b896eff379
1 changed files with 3 additions and 3 deletions

View File

@ -260,11 +260,11 @@ 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<MAX_CONTENT+1; i++) for (u16 i=0; i <= MAX_CONTENT; i++) {
{
if (i == CONTENT_IGNORE || i == CONTENT_AIR) if (i == CONTENT_IGNORE || i == CONTENT_AIR)
continue; continue;
ContentFeatures *f = &g_content_features[i]; ContentFeatures *f = &g_content_features[i];
f->draw_type = CDT_CUBELIKE;
f->setAllTextures("unknown_block.png"); f->setAllTextures("unknown_block.png");
f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1"; f->dug_item = std::string("MaterialItem2 ")+itos(i)+" 1";
} }