diff --git a/mods/ITEMS/mcl_potions/functions.lua b/mods/ITEMS/mcl_potions/functions.lua index 6100a65982..f7e44d076a 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -458,7 +458,7 @@ end function mcl_potions.healing_func(player, hp) - obj = player:get_luaentity() + local obj = player:get_luaentity() if is_zombie[player:get_entity_name()] then hp = -hp end