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] Fix runtime when food processor handles items without reagents #2125

Merged
merged 1 commit into from
Feb 26, 2024

Conversation

Steals-The-PRs
Copy link
Collaborator

Mirrored on Nova: NovaSector/NovaSector#1131
Original PR: tgstation/tgstation#81646

About The Pull Request

Alternate title: "Stop the popsicle stick maximizer."

The popsicle stick maximizer in question

image

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.

Runtime

image

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

🆑 00-Steven
fix: Disabled the popsicle stick maximizer. (Producing popsicle sticks actually deletes the input logs.)
/:cl:

…ts (#1131)

* 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: _0Steven <[email protected]>
@Iajret Iajret merged commit 136bdec into master Feb 26, 2024
24 checks passed
@Iajret Iajret deleted the upstream-mirror-1131 branch February 26, 2024 19:36
AnywayFarus added a commit that referenced this pull request Feb 26, 2024
Iajret pushed a commit that referenced this pull request Apr 22, 2024
* Add utf8 support for state laws button (#82789)

## About The Pull Request
Adds UTF-8 support for state laws HTML page. Now it supports more than
just English

## Why It's Good For The Game
Support for other symbols, such as cyrillic
![Screenshot 2024-04-21
015220](https://github.com/tgstation/tgstation/assets/31931237/57ca6d56-14da-4f10-a9b6-63b541c5eb5b)

* Add utf8 support for state laws button

---------

Co-authored-by: larentoun <[email protected]>
ReezeBL pushed a commit that referenced this pull request Apr 22, 2024
* Add utf8 support for state laws button (#82789)

## About The Pull Request
Adds UTF-8 support for state laws HTML page. Now it supports more than
just English

## Why It's Good For The Game
Support for other symbols, such as cyrillic
![Screenshot 2024-04-21
015220](https://github.com/tgstation/tgstation/assets/31931237/57ca6d56-14da-4f10-a9b6-63b541c5eb5b)

* Add utf8 support for state laws button

---------

Co-authored-by: NovaBot <[email protected]>
Co-authored-by: larentoun <[email protected]>
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