From 54b18385c83b199a0d15094182c298a9d524ecfa Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Thu, 17 Jul 2014 16:07:44 +0200 Subject: =?UTF-8?q?Add=20=E2=80=9Cplayer=E2=80=9D=20argument=20to=20the=20?= =?UTF-8?q?cancel=20callback?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index c11b2d2..647f52c 100644 --- a/init.lua +++ b/init.lua @@ -192,7 +192,7 @@ function playereffects.cancel_effect(effect_id) if(effect.hudids.icon_id~=nil) then player:hud_remove(effect.hudids.icon_id) end - playereffects.effect_types[effect.effect_type_id].cancel(effect) + playereffects.effect_types[effect.effect_type_id].cancel(effect, player) playereffects.effects[effect_id] = nil minetest.log("action", "[playereffects] Effect type "..effect.effect_type_id.." cancelled from player "..effect.playername.."!") end -- cgit v1.2.3