summaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2014-07-17 16:07:44 +0200
committerWuzzy <almikes@aol.com>2014-07-17 16:07:44 +0200
commit54b18385c83b199a0d15094182c298a9d524ecfa (patch)
tree7ebb5618a47470c3d2c58afc26304b6e6fbf4c16 /init.lua
parent86ed00c7c8e5f30d354dcc92ffc69b47fbf2a949 (diff)
Add “player” argument to the cancel callback
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua2
1 files changed, 1 insertions, 1 deletions
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