Hotfix for broken organ transplants (#933)

* full fucking send

* ope forgot to remove the EE scripts

* fix test

* fix shitcode fail

* DELTA THAT VALUE IS NULLABLE

* whoopsie daysie

* fixed???
This commit is contained in:
gluesniffler 2024-11-22 10:07:11 -04:00 committed by deltanedas
parent bf33742d18
commit f8c086466c
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,6 @@ public partial class SharedBodySystem
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);
}
@ -42,6 +41,7 @@ public partial class SharedBodySystem
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);
}