Skip to content

Commit

Permalink
Hotfix for broken organ transplants (DeltaV-Station#933)
Browse files Browse the repository at this point in the history
* full fucking send

* ope forgot to remove the EE scripts

* fix test

* fix shitcode fail

* DELTA THAT VALUE IS NULLABLE

* whoopsie daysie

* fixed???
  • Loading branch information
gluesniffler authored and deltanedas committed Dec 27, 2024
1 parent bf33742 commit f8c0864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Content.Shared/Body/Systems/SharedBodySystem.Organs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ private void AddOrgan(

if (organEnt.Comp.Body is not null)
{
organEnt.Comp.OriginalBody = organEnt.Comp.Body; // Shitmed Change
var addedInBodyEv = new OrganAddedToBodyEvent(bodyUid, parentPartUid);
RaiseLocalEvent(organEnt, ref addedInBodyEv);
}
Expand All @@ -42,6 +41,7 @@ private void RemoveOrgan(Entity<OrganComponent> organEnt, EntityUid parentPartUi

if (organEnt.Comp.Body is { Valid: true } bodyUid)
{
organEnt.Comp.OriginalBody = organEnt.Comp.Body; // Shitmed Change
var removedInBodyEv = new OrganRemovedFromBodyEvent(bodyUid, parentPartUid);
RaiseLocalEvent(organEnt, ref removedInBodyEv);
}
Expand Down

0 comments on commit f8c0864

Please sign in to comment.