Fix mesh glitches on MapBlock boundaries

This commit is contained in:
Perttu Ahola 2012-11-27 19:00:09 +02:00
parent 117f208826
commit 5c26972cdd
1 changed files with 2 additions and 2 deletions

View File

@ -77,9 +77,9 @@ void MeshMakeData::fill(MapBlock *block)
// Get map
Map *map = block->getParent();
for(u16 i=0; i<6; i++)
for(u16 i=0; i<26; i++)
{
const v3s16 &dir = g_6dirs[i];
const v3s16 &dir = g_26dirs[i];
v3s16 bp = m_blockpos + dir;
MapBlock *b = map->getBlockNoCreateNoEx(bp);
if(b)