Skip to content

Commit

Permalink
Fix obsolete ContainerManagerComponent method calls in ContainerSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
TemporalOroboros committed Feb 6, 2025
1 parent 9f633e9 commit 60b5b6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Robust.Client/GameObjects/EntitySystems/ContainerSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ private void UpdateEntityRecursively(EntityUid entity)
while (parent.IsValid() && (!spriteOccluded || !lightOccluded))
{
var parentXform = TransformQuery.GetComponent(parent);
if (TryComp<ContainerManagerComponent>(parent, out var manager) && manager.TryGetContainer(child, out var container))
if (TryComp<ContainerManagerComponent>(parent, out var manager) && TryGetContainingContainer(parent, child, out var container, manager))
{
spriteOccluded = spriteOccluded || !container.ShowContents;
lightOccluded = lightOccluded || container.OccludesLight;
Expand Down Expand Up @@ -344,7 +344,7 @@ private void UpdateEntity(
var childLightOccluded = lightOccluded;

// We already know either sprite or light is not occluding so need to check container.
if (manager.TryGetContainer(child, out var container))
if (TryGetContainingContainer(entity, child, out var container, manager))
{
childSpriteOccluded = childSpriteOccluded || !container.ShowContents;
childLightOccluded = childLightOccluded || container.OccludesLight;
Expand Down

0 comments on commit 60b5b6a

Please sign in to comment.