]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix nuke disk getting lost when polymorphed holder is deleted (#36058)
authorTayrtahn <tayrtahn@gmail.com>
Wed, 20 Aug 2025 07:02:41 +0000 (03:02 -0400)
committerGitHub <noreply@github.com>
Wed, 20 Aug 2025 07:02:41 +0000 (00:02 -0700)
commit95b0df9a8948a7dd7d80b082981e25a2d9dc5afa
treef5ebcdaabd81fda67feca239f70c75c48f3712d3
parentb317d7514f34c56a989c661668290857fdef6f57
Fix nuke disk getting lost when polymorphed holder is deleted (#36058)

* Delete original entity when polymorph is deleted

* Switch to EntityTerminatingEvent

* Add RevertOnDelete option to PolymorphPrototype

* Fix error on server shutdown while polymorphed

* Set RevertOnDelete to false by default

* AsNullable

* Revert "Set RevertOnDelete to false by default"

This reverts commit 087c43fbb923c9369c61c9d001e18814b3de3aca.

* Use pattern matching instead of .Value
Content.Server/Polymorph/Components/PolymorphedEntityComponent.cs
Content.Server/Polymorph/Systems/PolymorphSystem.cs
Content.Shared/Polymorph/PolymorphPrototype.cs