Storage warnings cleanup (#36196)

* Storage warnings cleanup

* Setting audio params on component
This commit is contained in:
J
2025-04-18 03:47:17 +00:00
committed by GitHub
parent 7d2ef2bd47
commit fa24960445
4 changed files with 10 additions and 10 deletions

View File

@@ -17,6 +17,7 @@ using Robust.Shared.Random;
using Robust.Shared.Timing;
using Robust.Shared.Prototypes;
using Content.Server.Shuttles.Components;
using Robust.Shared.Physics;
namespace Content.Server.Storage.EntitySystems;
@@ -163,11 +164,11 @@ public sealed class BluespaceLockerSystem : EntitySystem
return false;
if (lockerComponent.PickLinksFromSameMap &&
link.ToCoordinates().GetMapId(EntityManager) != locker.ToCoordinates().GetMapId(EntityManager))
_transformSystem.GetMapId(link.ToCoordinates()) != _transformSystem.GetMapId(locker.ToCoordinates()))
return false;
if (lockerComponent.PickLinksFromStationGrids &&
!HasComp<StationMemberComponent>(link.ToCoordinates().GetGridUid(EntityManager)))
!HasComp<StationMemberComponent>(_transformSystem.GetGrid(link.ToCoordinates())))
return false;
if (lockerComponent.PickLinksFromResistLockers &&
@@ -392,7 +393,7 @@ public sealed class BluespaceLockerSystem : EntitySystem
switch (component.BehaviorProperties.DestroyType)
{
case BluespaceLockerDestroyType.Explode:
_explosionSystem.QueueExplosion(uid.ToCoordinates().ToMap(EntityManager, _transformSystem),
_explosionSystem.QueueExplosion(_transformSystem.ToMapCoordinates(uid.ToCoordinates()),
ExplosionSystem.DefaultExplosionPrototypeId, 4, 1, 2, uid, maxTileBreak: 0);
goto case BluespaceLockerDestroyType.Delete;
case BluespaceLockerDestroyType.Delete: