From 3a3caf3885febf7ae2149f81bf748c7a4908cf54 Mon Sep 17 00:00:00 2001 From: Brandon Date: Tue, 7 Jul 2020 17:56:44 -0400 Subject: [PATCH] Remove old/incorrect code. --- mods/ITEMS/mcl_potions/functions.lua | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index 3f16185b45..3dfdac5dee 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -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()