Skip to content

Commit

Permalink
static
Browse files Browse the repository at this point in the history
  • Loading branch information
Spatison committed Jan 9, 2025
1 parent b986445 commit 11aefa9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Content.Shared/Body/Systems/SharedBodySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public static string GetPartSlotContainerId(string slotId)
/// <summary>
/// Gets the container Id for the specified slotId.
/// </summary>
public string GetOrganContainerId(string slotId)
public static string GetOrganContainerId(string slotId)
{
return OrganSlotContainerIdPrefix + slotId;
}
Expand Down
2 changes: 1 addition & 1 deletion Content.Shared/_Shitmed/Surgery/SharedSurgerySystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ private void OnOrganConditionValid(Entity<SurgeryOrganConditionComponent> ent, r
&& !organs.Any(organ => HasComp<OrganReattachedComponent>(organ.Id))))
args.Cancelled = true;
}
else if (!ent.Comp.Inverse || !_container.TryGetContainer(args.Part, _body.GetOrganContainerId(ent.Comp.SlotId), out _))
else if (!ent.Comp.Inverse || !_container.TryGetContainer(args.Part, SharedBodySystem.GetOrganContainerId(ent.Comp.SlotId), out _))
args.Cancelled = true;
}
}
Expand Down

0 comments on commit 11aefa9

Please sign in to comment.