diff options
author | Wuzzy <almikes@aol.com> | 2014-07-17 16:07:44 +0200 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2014-07-17 16:07:44 +0200 |
commit | 54b18385c83b199a0d15094182c298a9d524ecfa (patch) | |
tree | 7ebb5618a47470c3d2c58afc26304b6e6fbf4c16 /init.lua | |
parent | 86ed00c7c8e5f30d354dcc92ffc69b47fbf2a949 (diff) |
Add “player” argument to the cancel callback
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |