From 623f60ab7931d620b3b24642979f058c2022ce7d Mon Sep 17 00:00:00 2001 From: Brandon Date: Mon, 20 Jul 2020 19:50:17 -0400 Subject: [PATCH] correct elseif statement --- mods/ITEMS/mcl_potions/functions.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index 97906682..dbfdbe96 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -457,7 +457,7 @@ function mcl_potions.healing_func(player, hp) if obj and obj._cmi_is_mob then obj.health = math.max(obj.health + hp, obj.hp_max) - elseif player:is_player() + elseif player:is_player() then player:set_hp(math.min(player:get_hp() + hp, player:get_properties().hp_max), { type = "set_hp", other = "healing" }) else return @@ -467,10 +467,10 @@ function mcl_potions.healing_func(player, hp) if obj and obj._cmi_is_mob then obj.health = obj.health + hp - elseif player:is_player() + elseif player:is_player() then player:set_hp(player:get_hp() + hp, { type = "punch", other = "harming" }) else - return + return end end