Revert biome rework (#38724)
* Revert "Fix world generation (#38713)" This reverts commit10fa6ff4af. * Revert "Biome rework (#37735)" This reverts commitfe7b96147c.
This commit is contained in:
committed by
GitHub
parent
047a49a505
commit
e99fc501a6
@@ -71,17 +71,14 @@ public sealed partial class DungeonJob
|
||||
isValid = true;
|
||||
|
||||
// Entrance wew
|
||||
var tileVariant = _tile.GetVariantTile(tileDef, random);
|
||||
_maps.SetTile(_gridUid, _grid, tile, tileVariant);
|
||||
AddLoadedTile(tile, tileVariant);
|
||||
_maps.SetTile(_gridUid, _grid, tile, _tile.GetVariantTile(tileDef, random));
|
||||
ClearDoor(dungeon, _grid, tile);
|
||||
var gridCoords = _maps.GridTileToLocal(_gridUid, _grid, tile);
|
||||
// Need to offset the spawn to avoid spawning in the room.
|
||||
|
||||
foreach (var ent in _entTable.GetSpawns(contents, random))
|
||||
{
|
||||
var uid = _entManager.SpawnAtPosition(ent, gridCoords);
|
||||
AddLoadedEntity(tile, uid);
|
||||
_entManager.SpawnAtPosition(ent, gridCoords);
|
||||
}
|
||||
|
||||
// Clear out any biome tiles nearby to avoid blocking it
|
||||
|
||||
Reference in New Issue
Block a user