Diet (Fabric/Forge/Quilt)

Diet (Fabric/Forge/Quilt)

7M Downloads

[Bug]: Diet reset on death not working

SigmaFlame opened this issue ยท 0 comments

commented

Minecraft Version

1.19.2

What happened?

Hello,

When I die, I lost some of my diets.
I should not lost anything.

How do you trigger this bug?

  1. Eat something.
  2. See there is a % in the diet associated to what you eat.
  3. Die whatever the reason.
  4. See the diet is now lowered, often to 0%.

Loader

Forge

Loader Version

Forge 43.5.1

API Version

N/A

Mod Version

diet-forge-2.0.1+1.19.2

Relevant Log Outputs

That's my config file "diet-server.toml" :

#The minimum percentage that diet groups can be reduced to upon death.
#Range: 0 ~ 100
deathPenaltyMin = 0
#The reduction in percentage applied to all diet groups upon death.
#Range: 0 ~ 100
deathPenaltyLoss = 0
#The method to apply for losses due to death penalties.
#AMOUNT = Reduce by a flat percentage amount
#PERCENT = Reduce by a percent of the current value
#RESET = Reset value to defaults
#Allowed Values: AMOUNT, PERCENT, RESET
deathPenaltyMethod = "AMOUNT"
#The percentage reduction in total gain for each diet group consumed at once.
#Range: 0 ~ 100
gainPenaltyPerGroup = 15
#The percentage reduction in total decay for each diet group decayed at once.
#Range: 0 ~ 100
decayPenaltyPerGroup = 15
#List of food quality overrides for diet gain values.
#Format: "modid:name;quality"
foodOverrides = []
#If enabled, food groups are assigned to unclassified items based on ingredients.
generateGroupsForEmptyItems = true
#If enabled, food group tooltips are hidden until player has eaten that type of item.
hideTooltipsUntilEaten = false```