From 31aa880e8571f83d30fe9c4f277af40ae8ce36e7 Mon Sep 17 00:00:00 2001 From: Brandon Date: Fri, 3 Jul 2020 20:31:53 -0400 Subject: [PATCH] fix local declaration --- mods/ITEMS/mcl_potions/functions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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