Skip to content

fix: food regen and simplify logic - #833

Open
jprzimba wants to merge 2 commits into
mainfrom
fix-food
Open

fix: food regen and simplify logic#833
jprzimba wants to merge 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
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