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

Fix Recipe Remainder API #366

Merged
merged 3 commits into from
Apr 2, 2024
Merged

Conversation

OroArmor
Copy link
Member

A fairly substantial rework of the Recipe Remainder API.

The main idea behind this change is that the vanilla recipe remainders are used in two different contexts, and only those two (Crafting and Furnace Fuel). By arbitrarily extending this to all the supported locations, mods that relied on the behavior only being used in the vanilla locations broke. A great example was smelting a water bucket into a steam bucket, and duping the bucket (#251).

This PR fixes this by forcing mods to explicitly register their remainders for different locations than the default vanilla ones. This is a breaking change to the API, but no mods will crash, only their functionality will be impacted.

This PR also fixes the remainders not working in the new smithing table and extends the system to work in both the template and base slots.

Fixes #251

@OroArmor OroArmor changed the title Initial Fix Fix Recipe Remainder API Mar 30, 2024
Copy link
Contributor

@Platymemo Platymemo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The kind of solution where you kick yourself for not seeing it before! Looks great!

@OroArmor
Copy link
Member Author

FCP for 2 days.

@OroArmor OroArmor merged commit 6a7a5f7 into QuiltMC:1.20.3 Apr 2, 2024
2 checks passed
OroArmor added a commit that referenced this pull request Apr 3, 2024
* Initial Fix

Fixes #251

* Add a way to get locations with the ID

* Support more default and an all location
OroArmor added a commit that referenced this pull request Apr 3, 2024
* Initial Fix

Fixes #251

* Add a way to get locations with the ID

* Support more default and an all location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplication bug with furnace inputs and recipe remainders
3 participants