mirror of
https://github.com/minetest/minetest.git
synced 2024-11-09 17:23:45 +01:00
Fix mesh glitches on MapBlock boundaries
This commit is contained in:
parent
117f208826
commit
5c26972cdd
@ -77,9 +77,9 @@ void MeshMakeData::fill(MapBlock *block)
|
|||||||
// Get map
|
// Get map
|
||||||
Map *map = block->getParent();
|
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;
|
v3s16 bp = m_blockpos + dir;
|
||||||
MapBlock *b = map->getBlockNoCreateNoEx(bp);
|
MapBlock *b = map->getBlockNoCreateNoEx(bp);
|
||||||
if(b)
|
if(b)
|
||||||
|
Loading…
Reference in New Issue
Block a user