From 8de20e2bd51f90ced3b5fe445a8ff19e46e75976 Mon Sep 17 00:00:00 2001 From: MewMew Date: Tue, 22 Oct 2019 08:37:06 +0200 Subject: [PATCH] eating below max health fix --- modules/hunger.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hunger.lua b/modules/hunger.lua index d42a05a5..3deb1b03 100644 --- a/modules/hunger.lua +++ b/modules/hunger.lua @@ -139,7 +139,7 @@ end local function on_player_used_capsule(event) if event.item.name == "raw-fish" then local player = game.players[event.player_index] - if player.character.health < 250 then return end + if player.character.health < player.character.prototype.max_health + player.character_health_bonus + player.force.character_health_bonus then return end hunger_update(player, player_hunger_fish_food_value) player.play_sound{path="utility/armor_insert", volume_modifier=0.9} end