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
@@ -1,14 +1,12 @@
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Numerics;
|
||||
using Content.Server.Decals;
|
||||
using Content.Server.Shuttles.Components;
|
||||
using Content.Server.Shuttles.Events;
|
||||
using Content.Server.Station.Events;
|
||||
using Content.Shared.Body.Components;
|
||||
using Content.Shared.CCVar;
|
||||
using Content.Shared.Database;
|
||||
using Content.Shared.Decals;
|
||||
using Content.Shared.Ghost;
|
||||
using Content.Shared.Maps;
|
||||
using Content.Shared.Parallax;
|
||||
@@ -958,7 +956,6 @@ public sealed partial class ShuttleSystem
|
||||
var transform = _physics.GetRelativePhysicsTransform((uid, xform), xform.MapUid.Value);
|
||||
var aabbs = new List<Box2>(manager.Fixtures.Count);
|
||||
var tileSet = new List<(Vector2i, Tile)>();
|
||||
TryComp(xform.MapUid.Value, out DecalGridComponent? decalGrid);
|
||||
|
||||
foreach (var fixture in manager.Fixtures.Values)
|
||||
{
|
||||
@@ -972,15 +969,9 @@ public sealed partial class ShuttleSystem
|
||||
aabb = aabb.Enlarged(0.2f);
|
||||
aabbs.Add(aabb);
|
||||
|
||||
if (decalGrid != null)
|
||||
{
|
||||
foreach (var decal in _decals.GetDecalsIntersecting(xform.MapUid.Value, aabb))
|
||||
{
|
||||
_decals.RemoveDecal(xform.MapUid.Value, decal.Index, decalGrid);
|
||||
}
|
||||
}
|
||||
|
||||
// Handle clearing biome stuff as relevant.
|
||||
tileSet.Clear();
|
||||
_biomes.ReserveTiles(xform.MapUid.Value, aabb, tileSet);
|
||||
_lookupEnts.Clear();
|
||||
_immuneEnts.Clear();
|
||||
// TODO: Ideally we'd query first BEFORE moving grid but needs adjustments above.
|
||||
|
||||
Reference in New Issue
Block a user