Remove old/incorrect code.

This commit is contained in:
Brandon 2020-07-07 17:56:44 -04:00
parent 596d4ddc47
commit 3a3caf3885
1 changed files with 0 additions and 15 deletions

View File

@ -288,21 +288,6 @@ minetest.register_on_player_hpchange(function(player, hp_change)
end, true)
-- -- If a player is punched and is a weak player, damage by 2 additional hearts
-- minetest.register_on_player_hpchange(function(player, hp_change)
--
-- if is_weak[player] and hp_change < 0 then
--
-- -- prevent weakness from healing the victim
-- return math.min(hp_change - 4, 0)
--
-- else
-- return hp_change
-- end
--
-- end, true)
function mcl_potions._reset_player_effects(player)
player = player or player:get_luaentity()