mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-07-04 19:27:02 +00:00
Merge remote-tracking branch 'origin/main' into experimental
Some checks are pending
Nightly Release / Build Client (push) Waiting to run
Nightly Release / Release Server (push) Blocked by required conditions
Nightly Release / cleanup (push) Blocked by required conditions
Nightly Release / Build Server (push) Waiting to run
Nightly Release / Release Client (push) Blocked by required conditions
Some checks are pending
Nightly Release / Build Client (push) Waiting to run
Nightly Release / Release Server (push) Blocked by required conditions
Nightly Release / cleanup (push) Blocked by required conditions
Nightly Release / Build Server (push) Waiting to run
Nightly Release / Release Client (push) Blocked by required conditions
This commit is contained in:
commit
466a593733
|
|
@ -709,7 +709,8 @@ BoundingBox *VillagePieces::StraightRoad::findPieceBox(StartPiece *startPiece, l
|
|||
|
||||
bool VillagePieces::StraightRoad::postProcess(Level *level, Random *random, BoundingBox *chunkBB)
|
||||
{
|
||||
int tile = biomeBlock(Tile::gravel_Id, 0);
|
||||
int roadTile = biomeBlock(Tile::gravel_Id, 0);
|
||||
int baseTile = biomeBlock(Tile::cobblestone_Id, 0);
|
||||
for (int x = boundingBox->x0; x <= boundingBox->x1; x++)
|
||||
{
|
||||
for (int z = boundingBox->z0; z <= boundingBox->z1; z++)
|
||||
|
|
@ -717,7 +718,8 @@ bool VillagePieces::StraightRoad::postProcess(Level *level, Random *random, Boun
|
|||
if (chunkBB->isInside(x, 64, z))
|
||||
{
|
||||
int y = level->getTopSolidBlock(x, z) - 1;
|
||||
level->setTileAndData(x, y, z,tile, 0, Tile::UPDATE_CLIENTS);
|
||||
level->setTileAndData(x, y, z, roadTile, 0, Tile::UPDATE_CLIENTS);
|
||||
level->setTileAndData(x, y - 1, z, baseTile, 0, Tile::UPDATE_CLIENTS);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue