Cazsius / Spice-of-Life-Carrot-Edition

Motivating people to explore new foods with the carrot, not the stick.
GNU Lesser General Public License v2.1
17 stars 43 forks source link

[1.20.1] Need help #151

Open Sichongzou opened 9 months ago

Sichongzou commented 9 months ago

Hello, I encountered some issues while using this MOD, but I am not sure if it is a bug.

The server I am using is arclick forge 1.20.1-1.0.2.

The MOD version used is solCarrot 1.20.1-1.15.1

I modified the solCarrot server. toml in the server archive

But the specific configuration experience is very poor on the client side

Specifically manifested as:

I set the initial health to 4

Set to increase maximum health by 1 every time a milestone is reached

Food with a satiety level below 2.5 is not included in the milestone

But in reality, during client runtime,

When I eat a food with a satiety level below 2.5, a message pops up to congratulate me on unlocking the milestone

(I remember eating sweet berries, I'm not sure if other foods have similar situations)

When I repeatedly consume the same item after a period of time, he still pops up the same message to congratulate me

But in reality, my maximum health has not changed and I have not unlocked any milestones

All I received were duplicate congratulatory messages

Here is my configuration file image

juliand665 commented 8 months ago

Hey, sorry about the delay! Someone else had a similar problem and downgrading to version 1.15.0 of the mod fixed it for them; does it work for you on that version? That would help me locate the issue.

juliand665 commented 8 months ago

After some investigation, it looks like Forge is never triggering a config reload event (ModConfigEvent.Reloading) on the dedicated server. Instead, clients connecting after the change will use the new config, but only on the client side. Since 1.15.1 moved some logic client-side (so you can configure visuals etc. client-side), this issue has now become visible. I wonder if this is a Forge bug or if I'm using it wrong.