mirror of
https://github.com/minetest-mods/3d_armor.git
synced 2025-06-29 23:00:55 +02:00
Fix regression with heal_multiplier config
This commit is contained in:
@ -295,6 +295,7 @@ minetest.register_on_player_hpchange(function(player, hp_change)
|
||||
local name = player:get_player_name()
|
||||
if name and armor.def[name] then
|
||||
local heal = armor.def[name].heal or 0
|
||||
heal = heal * armor.config.heal_multiplier
|
||||
if heal >= math.random(100) then
|
||||
hp_change = 0
|
||||
end
|
||||
|
Reference in New Issue
Block a user