mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-31 17:18:16 +01:00
## About The Pull Request <img width="994" height="460" alt="image" src="https://github.com/user-attachments/assets/ef7e6eb3-8754-4913-87f1-fad62f03523f" /> Tin, saw a fair bit of this in the logs. Occurs when `forced_removal()` is called, which removes the chest from the bodyparts list and then gibs the mob. The individual organ removal procs attempt from the gibbing chain to call `on_bodypart_remove()` but there is no bodypart in the mob to refer to, so it runtimes. Adds a safety check for such cases, if there is no bodypart there we don't need to be doing anything in `on_bodypart_remove()` in the first place (and it has already been called previously by forced_removal(), presumably). ## Why It's Good For The Game Less runtime spam ## Changelog Not player-facing