Player no longer loses hunger in maps that override the player behavior file
Partner Rank:
3
Verification builds:
1.18.30.20_rc3, 1.18.20.27
Summary:
Player no longer loses hunger in maps that override the player behavior file
Impact:
We override the player behavior file in almost every map and this means food in maps that provide it (either for immersion or for combat) is no longer usable, or even necessary. This includes the first-party WDW Magic Kingdom Adventure map, in which we provide them with custom, Disney-themed food.
Repro Steps:
- Create a new copy of the WDW map. Enable cheats.
- Do /effect @s clear to get rid of the initial 5-minute saturation we give the player to get their bearings and find their first food items.
- Set simulation scale to 10.
- Sprint and jump around.
Observed Results:
The player does not lose hunger, ever, no matter how long you keep jumping.
Expected Results:
The player starts to lose hunger.
Regression Build:
Last worked in 1.18.10.24_rc1
Notes:
This may be related to the introduction of the minecraft:exhaustion_values component in the vanilla player. This bug indicates that this component isn't retroactively added to the player on older format versions.
When testing in WDW, make sure to clear your own effects with /effect @s clear, since we give saturation during the first 5 minutes so the player doesn't lose hunger while getting accustomed to the map.