mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
more reorganizing of map code
This commit is contained in:
@@ -126,7 +126,9 @@ MapSector * Map::getSectorNoGenerate(v2s16 p)
|
||||
MapBlock * Map::getBlockNoCreateNoEx(v3s16 p3d)
|
||||
{
|
||||
v2s16 p2d(p3d.X, p3d.Z);
|
||||
MapSector * sector = getSectorNoGenerate(p2d);
|
||||
MapSector * sector = getSectorNoGenerateNoEx(p2d);
|
||||
if(sector == NULL)
|
||||
return NULL;
|
||||
MapBlock *block = sector->getBlockNoCreateNoEx(p3d.Y);
|
||||
return block;
|
||||
}
|
||||
|
Reference in New Issue
Block a user