Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] Fix runtime when food processor handles items without reagen…
…ts (#2125) * Fix runtime when food processor handles items without reagents (#81646) ## About The Pull Request ### Alternate title: "Stop the popsicle stick maximizer." <details> <summary>The popsicle stick maximizer in question</summary> ![image](https://github.com/tgstation/tgstation/assets/42909981/29f636f3-6509-4cf9-9093-9fcd0ea5de4f) </details> So when using the food processor to produce popsicle sticks from logs, it seemed to never actually delete the log, letting you create more and more and more and more and more and etc popsicle sticks. This seemed to be caused by the popsicles not actually having reagents to clear nor copy to, and thus it caused a runtime before it got the opportunity to delete the log. <details> <summary>Runtime</summary> ![image](https://github.com/tgstation/tgstation/assets/42909981/bd853870-64e9-4b47-aead-38e6955b7dab) </details> Adding a check to make sure neither of these are null before proceeding to use them resolves this issue. ## Why It's Good For The Game Less runtimes, less popsicle stick maximizing. Fixes #81644. ## Changelog :cl: fix: Disabled the popsicle stick maximizer. (Producing popsicle sticks actually deletes the input logs.) /:cl: * Fix runtime when food processor handles items without reagents --------- Co-authored-by: NovaBot <[email protected]> Co-authored-by: _0Steven <[email protected]>
- Loading branch information