mirror of
https://repo.or.cz/minetest_playereffects.git
synced 2024-11-15 21:00:18 +01:00
Make apply_effect_type return effect_id on success
This commit is contained in:
parent
1dd5c5527a
commit
4ef959c78e
2
init.lua
2
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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user