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

Breaks when other mods have strange food nutrition values #8324

Closed
judiraal opened this issue Jan 31, 2025 · 2 comments
Closed

Breaks when other mods have strange food nutrition values #8324

judiraal opened this issue Jan 31, 2025 · 2 comments

Comments

@judiraal
Copy link

Issue description

Some mods (e.g. Butchery) introduce strange foods that have negative nutrition values. (That should probably not be allowed, but since they are out there and functioning not much to do about that.) This currently breaks TileEntityNutritionalLiquifier in getRecipe's call to new NutritionalLiquifierIRecipe. Since the food nutrition is negative the guard does not catch it, but later on in FluidOptionalItemOutput the fluid.isEmpty() call returns true. Negative fluid values are treated as empty.

Probably change the guard in TileEntityNutritionalLiquifier.getRecipe() to food.nutrition() <= 0 instead of food.nutrition() != 0.

Steps to reproduce

Test with Butchery and EMI: the Mekanism EMI plugin crashes and only part of the recipes are visible in EMI (e.g. fissile fuel is missing).

Minecraft version

1.21.1 (Latest)

NeoForge version

21.1.95

Mekanism version

10.7.7 (Latest)

Other relevant versions

Butchery 2.9 - https://www.curseforge.com/minecraft/mc-mods/butchery

If a (crash)log is relevant for this issue, link it here: (It's almost always relevant)

No response

@thiakil
Copy link
Member

thiakil commented Jan 31, 2025

yup, this was already done, just might not be released yet
#8296

@judiraal
Copy link
Author

Sorry, missed that. Good to know it is fixed in a future release.

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

No branches or pull requests

2 participants