mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
more reorganizing of map code
This commit is contained in:
parent
cb130d9158
commit
2915bd5518
10 changed files with 38 additions and 40 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue