Fixed a code branch never being run

This commit is contained in:
the-real-herowl 2023-12-05 01:57:40 +01:00
parent 1857341b59
commit 589de76613
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ minetest.register_globalstep(function(dtime)
local player_health = player:get_hp()
local max_tick_timer = tonumber(minetest.settings:get("mcl_health_regen_delay")) or 0.5
if food_tick_timer > max_tick_timer then
if food_tick_timer > 4 then
food_tick_timer = 0
-- let hunger work always