From 7a411df76ea2c74b3f5e3d8eea257777ae7edb5d Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 15 Jul 2014 00:12:05 +0200 Subject: Rename 1st param of register func for consistency --- init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 97bf532..fe7eb32 100644 --- a/init.lua +++ b/init.lua @@ -47,7 +47,7 @@ function playereffects.next_effect_id() end --[=[ API functions ]=] -function playereffects.register_effect_type(name, description, icon, groups, apply, cancel, hidden) +function playereffects.register_effect_type(effect_type_id, description, icon, groups, apply, cancel, hidden) effect_type = {} effect_type.description = description effect_type.apply = apply @@ -63,8 +63,8 @@ function playereffects.register_effect_type(name, description, icon, groups, app else effect_type.hidden = false end - playereffects.effect_types[name] = effect_type - minetest.log("action", "[playereffects] Effect type "..name.." registered!") + playereffects.effect_types[effect_type_id] = effect_type + minetest.log("action", "[playereffects] Effect type "..effect_type_id.." registered!") end function playereffects.apply_effect_type(effect_type_id, duration, player) -- cgit v1.2.3