-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
Remove unnecessary Destroys #573
Comments
it would also fix the "what." bug presumably wouldnt happen since ForceVolumes wouldnt be destroyed ("what" is caused by a null ForceVolume in ForceDetector, and the only way for that to happen is if the volume was destroyed) see #596 |
I tested removing the destroy call in No issues were found during this test. For reference, I simply commented out some of the lines at the end of the function:
|
me i will test this at some point with some mods one day eventually and then see if it explodes |
according to #670 this apparently breaks shit or something idk |
@JohnCorby its because that PR patched the destroy method so that nothing ever can be destroyed either by base game or by other mods. Doesn't necessarily mean that stopping our code destroying stuff would be bad. |
## Improvements - Cleaned up how planets are destroyed. Should make load screens faster. Implements #573
<!-- A new module or something else important --> ## Major features - <!-- A new parameter added to a module, or API feature --> ## Minor features - <!-- Some improvement that requires no action on the part of add-on creators i.e., improved star graphics --> ## Improvements - Cached more stuff to improve loading times. Implements #683 - Cleaned up how planets are destroyed. Should make load screens faster. Implements #573 <!-- Be sure to reference the existing issue if it exists --> ## Bug fixes - Fixes Bramble colours at a distance. Fixes #372
## Major features - New `ParticleFields` module. Add particles to your planet (ex: leaves, rain, snow, fireflies, and more). Resolves #219 ## Improvements - Cached more stuff to improve loading times. Resolves #683 - Cleaned up how planets are destroyed. Should make load screens faster. Resolves #573 ## Bug fixes - Fixes Bramble colours at a distance. Fixes #372 and #641 - Allow setting ship spawns in main solar system / separately from the player spawn. Resolves #677
Around the codebase (but mainly in here) we do calls to Destroy when we probably could just be doing SetActive(false)
It would be easier/nicer if we were more consistent with this. Obviously testing required.
The text was updated successfully, but these errors were encountered: