summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWuzzy <almikes@aol.com>2014-07-14 18:13:31 +0200
committerWuzzy <almikes@aol.com>2014-07-14 18:13:31 +0200
commit4ef959c78e0a129b16500aba863db807d6a72da8 (patch)
tree00daad8062b33ec2d0630f72f79ee481c05f1bb8
parent1dd5c5527a65e739aba8af89ab982fbe6c44ab00 (diff)
Make apply_effect_type return effect_id on success
-rw-r--r--init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 173a460..661b73c 100644
--- a/init.lua
+++ b/init.lua
@@ -143,6 +143,8 @@ function playereffects.apply_effect_type(effect_type_id, duration, player)
minetest.log("action", "[playereffects] Effect type "..effect_type_id.." applied to player "..playername.."!")
minetest.after(duration, function(effect_id) playereffects.cancel_effect(effect_id) end, effect_id)
+
+ return effect_id
end
function playereffects.cancel_effect_type(effect_type_id, cancel_all, playername)