Fix harming potion crash

This commit is contained in:
Elias Fleckenstein 2021-04-30 16:38:53 +02:00
parent ae1212be7f
commit 8cccbd7caa

View File

@ -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