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

Missing Nutrients #38

Open
Siberiansam1408 opened this issue Dec 1, 2023 · 14 comments
Open

Missing Nutrients #38

Siberiansam1408 opened this issue Dec 1, 2023 · 14 comments

Comments

@Siberiansam1408
Copy link

raw food like raw porkchop or fish, potatoes carrots and stuff from other mods work, But im playing on a server with my friends and theirs are fine, but when you change the food by cooking or crafting it into higher tiers the nutrients disappear, So they no longer show nutrients, they still GIVE YOU nutrients but they no longer show me the amount of nutrients that its gonna give. I have no idea why

@dannydjdk
Copy link
Owner

dannydjdk commented Dec 2, 2023

Thanks for the report. Please let me know what version of Nutritional Balance you are using.

Edit: also, please check the version on the server and make sure they are the same.

@Siberiansam1408
Copy link
Author

Siberiansam1408 commented Dec 2, 2023

We are, 1.20-5.1.3, It seems to be random but now its working for now. Idk

@Moutarde
Copy link

Moutarde commented Dec 2, 2023

Hello! Same issue here, same version.

@dannydjdk
Copy link
Owner

@Moutarde are you also playing on a server? Or are you seeing this in single player?

@Siberiansam1408
Copy link
Author

@Moutarde are you also playing on a server? Or are you seeing this in single player?

I am unsure about him, but on my end it does work in singleplayer, at least from when I tried it

@mxnmnm
Copy link

mxnmnm commented Sep 22, 2024

@dannydjdk this is still an issue btw it happens even if other mods aren't installed and it only happens on servers (from what I've seen)

@dannydjdk
Copy link
Owner

@mxnmnm Thanks for the info! FYI: if this does happen in the future, rather than restarting, try running /reload. This should work both on the server and the client. Do it on the server first, then client. It's faster than a restart and forces all tags and nutrient data to reload, so it should have the same affect. Depending on how complex your pack is, it can cause the server and/or client to be unresponsive for a bit. Alternatively, disconnecting and reconnecting the client would also have the same affect.

In #41, you mentioned stats. Are you talking about the player's nutritional stats or the nutrient info for food items?

@mxnmnm
Copy link

mxnmnm commented Sep 23, 2024

Yea I've tried that before and nothing works to consistently fix it

@mxnmnm
Copy link

mxnmnm commented Sep 23, 2024

I was referring to the nutrient info for food items

@mxnmnm
Copy link

mxnmnm commented Sep 23, 2024

Just tried what you suggested and it did not work so there is something really funky going on :/

@mxnmnm
Copy link

mxnmnm commented Sep 25, 2024

@dannydjdk any updates on this issue? need me to do any specific testing?

@mxnmnm
Copy link

mxnmnm commented Sep 26, 2024

So reloading the server and restarting the client seems to work relatively consistently, but other combos do not work as consistently.

@dannydjdk
Copy link
Owner

Thanks for the info! Reloading the server and reconnecting the client doesn't work consistently, but entirely restarting the client does? That's strange and interesting.

When you said no other mods, does that include JEI (or similar)? Just curious, because I believe that the nutrient data is being loaded too soon, and I know that JEI likes to try to load all tooltips while the game is loading. Either way, the solution is probably the same. I need to somehow have the mod check that all tags are loaded before loading any nutrients.

Unfortunately, I won't have time to dig into that until next week.

@mxnmnm
Copy link

mxnmnm commented Sep 26, 2024

The nutrient issue happened even without jei, but the whole reloading thing worked with my big pack. So it would probably work with just the nutrients. There may be other mods involved that require that specific way of fixing it and just doing /reload on client and server would be fine with just the nutrients.

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

4 participants