Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
FireNameFN committed Apr 27, 2024
1 parent bd04fc8 commit 1008291
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Content.Server/Worldgen/Systems/LocalityLoaderSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,21 +88,9 @@ private void OnDebrisDespawn(EntityUid entity, SpaceDebrisComponent component, E
{
var mobQuery = AllEntityQuery<HumanoidAppearanceComponent, MobStateComponent, TransformComponent>();

var logger = IoCManager.Resolve<ILogManager>().GetSawmill("world.debris.debug");

logger.Debug(ToPrettyString(entity));

while (mobQuery.MoveNext(out var mob, out _, out _, out var xform))
{
logger.Debug($"{ToPrettyString(mob)} {xform.GridUid}");

if (xform.MapUid is not null && xform.GridUid == entity)
{
_xformSys.SetCoordinates(mob, new(xform.MapUid.Value, _xformSys.GetWorldPosition(xform)));

logger.Debug($"Unparented!");
}
}
}
}

Expand Down

0 comments on commit 1008291

Please sign in to comment.