Merge remote-tracking branch 'upstream/stable' into ed-08-07-2025-upstream
# Conflicts: # Content.Server/Audio/ContentAudioSystem.cs # Content.Server/Medical/HealthAnalyzerSystem.cs # Content.Server/Shuttles/Systems/ShuttleSystem.cs # Resources/Locale/en-US/navmap-beacons/station-beacons.ftl
This commit is contained in:
@@ -95,7 +95,7 @@ public sealed class BluespaceLockerSystem : EntitySystem
|
||||
if (component.BehaviorProperties.TransportEntities || component.BehaviorProperties.TransportSentient)
|
||||
foreach (var entity in target.Value.storageComponent.Contents.ContainedEntities.ToArray())
|
||||
{
|
||||
if (EntityManager.HasComponent<MindContainerComponent>(entity))
|
||||
if (HasComp<MindContainerComponent>(entity))
|
||||
{
|
||||
if (!component.BehaviorProperties.TransportSentient)
|
||||
continue;
|
||||
@@ -312,7 +312,7 @@ public sealed class BluespaceLockerSystem : EntitySystem
|
||||
if (component.BehaviorProperties.TransportEntities || component.BehaviorProperties.TransportSentient)
|
||||
foreach (var entity in entityStorageComponent.Contents.ContainedEntities.ToArray())
|
||||
{
|
||||
if (EntityManager.HasComponent<MindContainerComponent>(entity))
|
||||
if (HasComp<MindContainerComponent>(entity))
|
||||
{
|
||||
if (!component.BehaviorProperties.TransportSentient)
|
||||
continue;
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace Content.Server.Storage.EntitySystems
|
||||
[Dependency] private readonly EntityWhitelistSystem _whitelistSystem = default!;
|
||||
protected override int? GetCount(ContainerModifiedMessage msg, ItemCounterComponent itemCounter)
|
||||
{
|
||||
if (!EntityManager.TryGetComponent(msg.Container.Owner, out StorageComponent? component))
|
||||
if (!TryComp(msg.Container.Owner, out StorageComponent? component))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace Content.Server.Storage.EntitySystems
|
||||
// Calculate the average price of the possible spawned items
|
||||
args.Price += _pricing.GetPrice(protUid) * entry.SpawnProbability * entry.GetAmount(getAverage: true);
|
||||
|
||||
EntityManager.DeleteEntity(protUid);
|
||||
Del(protUid);
|
||||
}
|
||||
|
||||
foreach (var group in orGroups)
|
||||
@@ -54,7 +54,7 @@ namespace Content.Server.Storage.EntitySystems
|
||||
(entry.SpawnProbability / group.CumulativeProbability) *
|
||||
entry.GetAmount(getAverage: true);
|
||||
|
||||
EntityManager.DeleteEntity(protUid);
|
||||
Del(protUid);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user