1
0
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:
stujones11
2017-04-09 16:25:52 +01:00
parent e5e926a02e
commit a76a35f177
3 changed files with 5 additions and 7 deletions

View File

@ -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