Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MIRROR] Material container drops sheets only on object deconstruct & not destroy. #1849

Merged
merged 1 commit into from
Feb 7, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#793
Original PR: tgstation/tgstation#81290

About The Pull Request

  • Fixes #81289

It has nothing to do with dump_contents() but with the material container that drops its materials on Destroy() causing side effects. Now it only drops sheets when an object is deconstructed but not destroyed.

For this to work properly on all instances we have to ensure deconstruct() is not overridden at least on machines for now, so they can send COMSIG_OBJ_DECONSTRUCT signal. That comes in the next PR

Changelog

🆑 SyncIt21
fix: deleting objects with local material storage(autolathe, drone dispenser etc) no longer drops sheets, they only drop materials when deconstructed
/:cl:

… not destroy. (#793)

* Material container drops sheets only on object deconstruct & not destroy. (#81290)

## About The Pull Request
- Fixes #81289

It has nothing to do with `dump_contents()` but with the material
container that drops its materials on `Destroy()` causing side effects.
Now it only drops sheets when an object is deconstructed but not
destroyed.

For this to work properly on all instances we have to ensure
`deconstruct()` is not overridden at least on machines for now, so they
can send `COMSIG_OBJ_DECONSTRUCT` signal. That comes in the next PR

## Changelog
:cl:
fix: deleting objects with local material storage(autolathe, drone
dispenser etc) no longer drops sheets, they only drop materials when
deconstructed
/:cl:

* Material container drops sheets only on object deconstruct & not destroy.

---------

Co-authored-by: SyncIt21 <[email protected]>
@Iajret Iajret merged commit 499afc2 into master Feb 7, 2024
24 checks passed
@Iajret Iajret deleted the upstream-mirror-793 branch February 7, 2024 23:30
AnywayFarus added a commit that referenced this pull request Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants