Add “player” argument to the cancel callback

This commit is contained in:
Wuzzy
2014-07-17 16:07:44 +02:00
parent 86ed00c7c8
commit 54b18385c8
3 changed files with 11 additions and 16 deletions

View File

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