dannydjdk / Nutritional-Balance

A Minecraft mod that enhances the food system to encourage you to eat a balanced diet.
https://www.curseforge.com/minecraft/mc-mods/nutritional-balance
GNU General Public License v3.0
3 stars 5 forks source link

Missing Nutrients #38

Open Siberiansam1408 opened 10 months ago

Siberiansam1408 commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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

Moutarde commented 10 months ago

Hello! Same issue here, same version.

dannydjdk commented 10 months ago

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

Siberiansam1408 commented 10 months ago

@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 commented 3 weeks ago

@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 commented 3 weeks ago

@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 commented 3 weeks ago

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

mxnmnm commented 3 weeks ago

I was referring to the nutrient info for food items

mxnmnm commented 3 weeks ago

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

mxnmnm commented 2 weeks ago

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

mxnmnm commented 2 weeks ago

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

dannydjdk commented 2 weeks ago

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 commented 2 weeks ago

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.