From 8cccbd7caad680cfbe97ef0effd24b07e7fca7c2 Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Fri, 30 Apr 2021 16:38:53 +0200 Subject: [PATCH] Fix harming potion crash --- 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 9a1e38d996..55a98ba9de 100644 --- a/mods/ITEMS/mcl_potions/functions.lua +++ b/mods/ITEMS/mcl_potions/functions.lua @@ -689,7 +689,7 @@ function mcl_potions.healing_func(player, hp) hp = -1 end - mcl_util.deal_damage(obj, -hp, {type = "magic"}) + mcl_util.deal_damage(player, -hp, {type = "magic"}) end end