yeelp / Scaling-Feast

A simple, balanced way to increase your maximum hunger in Minecraft over the course of a world.
MIT License
0 stars 1 forks source link

Hunger level can go above cap #82

Closed James103 closed 4 years ago

James103 commented 4 years ago

Mod Version: scalingfeast-1.5.0 Minecraft Version: 1.12.2 Loaded Mods: (Reproducible with just Scaling Feast)

Describe the bug Hunger level can be greater than cap. Additionally, hunger level above cap is not shown in green.

Steps to Reproduce

  1. /sf setMax @p 500 and /hunger 1
  2. /give @p minecraft:stone 1 0 {AttributeModifiers:[{AttributeName:"scalingfeast.maxHungerMod",Name:"test",Amount:500,Operation:0,UUIDLeast:880424,UUIDMost:129850}]}
  3. Hold this stone in your hand (or equip it in your head slot).
  4. /effect @p saturation 2 500
  5. Take a look at your food level.

Expected behavior Hunger level resets back to max when max hunger decreases. image

Screenshots image

Additional context Saturation can't go above cap, see 6743a8fa6734ba566c697204decbd7a1daf891dc

yeelp commented 4 years ago

Nice catch. Should be an easy fix.