Skip to content

Add index check to getRecipeType()#4859

Open
Taskeren wants to merge 1 commit into
GregTechCEu:1.20.1from
Taskeren:fix-recipe-aoob
Open

Add index check to getRecipeType()#4859
Taskeren wants to merge 1 commit into
GregTechCEu:1.20.1from
Taskeren:fix-recipe-aoob

Conversation

@Taskeren
Copy link
Copy Markdown
Contributor

What

Fixed a bug where when the machine mode gets removed, the invalid index is still used, causing game to crash.

Implementation Details

If the mode is out-of-bound, it use the 0-indexed mode.

Additional Information

Discovered in StarT-Dev-Team/Star-Technology#510

@Taskeren Taskeren requested a review from a team as a code owner May 21, 2026 15:49
@gustovafing gustovafing added the Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. label May 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.20.1 Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants