Allow healing when max_hp is higher than max stamina (#45)

This commit is contained in:
fluxionary 2023-05-14 05:51:49 -07:00 committed by GitHub
parent 6e979b7cd8
commit b5df973174
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -383,7 +383,6 @@ local function health_tick()
-- don't heal if dead, drowning, or poisoned
local should_heal = (
saturation >= settings.heal_lvl and
saturation >= hp and
hp < hp_max and
hp > 0 and
air > 0