Skip to content

fix: food regen and simplify logic - #833

Merged
jprzimba merged 2 commits into
mainfrom
fix-food
Jul 29, 2026
Merged

fix: food regen and simplify logic#833
jprzimba merged 2 commits into
mainfrom
fix-food

Conversation

@jprzimba

Copy link
Copy Markdown
Collaborator

Fix food/regeneration handling: use condition:getFoodTicks() for fullness checks and Player.feed, create local foodCondition in player.lua, and simplify ConditionRegeneration by decrementing foodTicks by interval (removing internalFoodTicks) and sending player stats when food ticks change.

Also ensure bed regeneration updates CONDITION_PARAM_FOODTICKS.

Fixes #828

@jprzimba jprzimba changed the title fix: Use getFoodTicks for food regen and simplify logic fix: food regen and simplify logic Jul 26, 2026
@jprzimba
jprzimba merged commit eba7b12 into main Jul 29, 2026
31 checks passed
@jprzimba
jprzimba deleted the fix-food branch July 29, 2026 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Food condition timer is not decreasing after eating

1 participant