]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix disposals bins not automatically flushing after an object is inserted (#25233)
authorPieter-Jan Briers <pieterjan.briers+git@gmail.com>
Thu, 15 Feb 2024 20:52:52 +0000 (21:52 +0100)
committerGitHub <noreply@github.com>
Thu, 15 Feb 2024 20:52:52 +0000 (15:52 -0500)
commit571d4f735888343ca3ba90eaea0908257095cdb9
tree36033bfbe73d176b87869802f9ea336885e36754
parent82f5bf8121f6f018d8af6442a031b21f9d95cba7
Fix disposals bins not automatically flushing after an object is inserted (#25233)

Fix disposals bins not automatically flushing after an object is inserted.

Because of Spaghetti Code:tm:, AfterInsert() in DisposalUnitSystem still handles insertion itself. Except in all cases except drag/drop insert, the object is already inserted so this check fails and the remaining logic doesn't happen anymore. Fixed now.
Content.Server/Disposal/Unit/EntitySystems/DisposalUnitSystem.cs